Adds separate log for sql errors with no config check

This commit is contained in:
CitadelStationBot
2017-08-28 02:20:16 -05:00
parent 65d4c6f938
commit ed1a06a9ed
3 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -97,8 +97,7 @@
WRITE_FILE(GLOB.world_game_log, "\[[time_stamp()]]CHAT: [text]")
/proc/log_sql(text)
if(config.sql_enabled)
WRITE_FILE(GLOB.world_game_log, "\[[time_stamp()]]SQL: [text]")
WRITE_FILE(GLOB.sql_error_log, "\[[time_stamp()]]SQL: [text]")
//This replaces world.log so it displays both in DD and the file
/proc/log_world(text)