Add flag to enable verbose output

This commit is contained in:
sfan5
2025-03-05 20:19:36 +01:00
parent e982efe94e
commit 4ba09ec532
12 changed files with 114 additions and 48 deletions

View File

@ -7,6 +7,7 @@
#include "config.h"
#include "PlayerAttributes.h"
#include "util.h"
#include "log.h"
#include "db-sqlite3.h" // SQLite3Base
namespace {
@ -82,7 +83,7 @@ void FilesReader::read(PlayerAttributes::Players &dest)
Player player;
player.name = name;
if (!parse_pos(position, player)) {
std::cerr << "Failed to parse position " << position << std::endl;
errorstream << "Failed to parse position '" << position << "'" << std::endl;
continue;
}