redo all the logging in affected files

This commit is contained in:
ebbit1q 2026-04-05 14:47:56 +02:00
parent 3cf3fa789d
commit 1007ee31cc
6 changed files with 122 additions and 103 deletions

View file

@ -30,6 +30,8 @@
#include <libcockatrice/protocol/pb/response_replay_get_code.pb.h>
#include <libcockatrice/protocol/pending_command.h>
inline Q_LOGGING_CATEGORY(TabReplaysLog, "replays_tab");
TabReplays::TabReplays(TabSupervisor *_tabSupervisor, AbstractClient *_client, const ServerInfo_User *currentUserInfo)
: Tab(_tabSupervisor), client(_client)
{
@ -268,7 +270,7 @@ void TabReplays::actOpenLocalReplay()
if (replay->ParseFromArray(_data.data(), _data.size())) {
emit openReplay(replay);
} else {
qDebug() << "could not parse replay!";
qCWarning(TabReplaysLog) << "could not parse replay!";
}
}
}
@ -385,7 +387,7 @@ void TabReplays::openRemoteReplayFinished(const Response &r)
emit openReplay(replay);
} else {
qDebug() << "could not parse replay!";
qCWarning(TabReplaysLog) << "could not parse remote replay!";
}
}

View file

@ -84,6 +84,7 @@
const QString MainWindow::appName = "Cockatrice";
const QStringList MainWindow::fileNameFilters = QStringList() << QObject::tr("Cockatrice card database (*.xml)")
<< QObject::tr("All files (*.*)");
inline Q_LOGGING_CATEGORY(MainWindowLog, "main_window");
/**
* Replaces the tab-specific menus that are shown in the menuBar.
@ -280,7 +281,7 @@ void MainWindow::actWatchReplay()
if (replay->ParseFromArray(buf.data(), buf.size())) {
tabSupervisor->openReplay(replay);
} else {
qDebug() << "[MainWindow] failed to parse replay!";
qCWarning(MainWindowLog) << "failed to parse replay!";
}
}