Codefix: don't send desync=0 log messages to commands.log (#12517)
They are only used during replay, and you want to see those in the console; not in the log.
This commit is contained in:
@@ -110,7 +110,7 @@ void DumpDebugFacilityNames(std::back_insert_iterator<std::string> &output_itera
|
|||||||
*/
|
*/
|
||||||
void DebugPrint(const char *category, int level, const std::string &message)
|
void DebugPrint(const char *category, int level, const std::string &message)
|
||||||
{
|
{
|
||||||
if (strcmp(category, "desync") == 0) {
|
if (strcmp(category, "desync") == 0 && level != 0) {
|
||||||
static FILE *f = FioFOpenFile("commands-out.log", "wb", AUTOSAVE_DIR);
|
static FILE *f = FioFOpenFile("commands-out.log", "wb", AUTOSAVE_DIR);
|
||||||
if (f == nullptr) return;
|
if (f == nullptr) return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user