1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add better trace peudo-loglevel support

This commit is contained in:
Perttu Ahola 2012-05-20 18:30:30 +03:00
parent 388906ac70
commit 1f670fc688
3 changed files with 9 additions and 2 deletions

View file

@ -854,8 +854,9 @@ int main(int argc, char *argv[])
// If trace is enabled, enable logging of certain things
if(cmd_args.getFlag("trace")){
dstream<<"Enabling trace level debug output"<<std::endl;
dout_con_ptr = &verbosestream;
socket_enable_debug_output = true;
log_trace_level_enabled = true;
dout_con_ptr = &verbosestream; // this is somewhat old crap
socket_enable_debug_output = true; // socket doesn't use log.h
}
// In certain cases, output info level on stderr
if(cmd_args.getFlag("info") || cmd_args.getFlag("verbose") ||