|
|
@ -62,7 +62,7 @@ extern std::map<std::type_info const*, bool> g_logOverride; |
|
|
|
/// Temporary changes system's verbosity for specific function. Restores the old verbosity when function returns.
|
|
|
|
struct VerbosityHolder |
|
|
|
{ |
|
|
|
VerbosityHolder(int _temporaryValue) : oldLogVerbosity(g_logVerbosity) { g_logVerbosity = _temporaryValue; } |
|
|
|
VerbosityHolder(int _temporaryValue): oldLogVerbosity(g_logVerbosity) { g_logVerbosity = _temporaryValue; } |
|
|
|
~VerbosityHolder() { g_logVerbosity = oldLogVerbosity; } |
|
|
|
int oldLogVerbosity; |
|
|
|
}; |
|
|
|