Console: check_caches should also log failure messages to the console
This commit is contained in:
@@ -3022,7 +3022,10 @@ DEF_CONSOLE_CMD(ConCheckCaches)
|
||||
if (broadcast) {
|
||||
DoCommandP(0, 0, 0, CMD_DESYNC_CHECK);
|
||||
} else {
|
||||
CheckCaches(true, nullptr, CHECK_CACHE_ALL | CHECK_CACHE_EMIT_LOG);
|
||||
auto logger = [&](const char *str) {
|
||||
IConsolePrint(CC_WARNING, str);
|
||||
};
|
||||
CheckCaches(true, logger, CHECK_CACHE_ALL | CHECK_CACHE_EMIT_LOG);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user