mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
adds arguments listing to query error logging (#52129)
Co-authored-by: Jordie0608 <=>
This commit is contained in:
@@ -338,7 +338,7 @@ Delayed insert mode was removed in mysql 7 and only works with MyISAM type table
|
||||
. = run_query(async)
|
||||
var/timed_out = !. && findtext(last_error, "Operation timed out")
|
||||
if(!. && log_error)
|
||||
log_sql("[last_error] | Query used: [sql]")
|
||||
log_sql("[last_error] | Query used: [sql] | Arguments: [json_encode(arguments)]")
|
||||
if(!async && timed_out)
|
||||
log_query_debug("Query execution started at [start_time]")
|
||||
log_query_debug("Query execution ended at [REALTIMEOFDAY]")
|
||||
|
||||
Reference in New Issue
Block a user