mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 23:31:04 +00:00
Improves caught exception logging
Also refactors away "log_runtime" config var to use its name for a helper proc
This commit is contained in:
@@ -327,9 +327,7 @@
|
||||
|
||||
/datum/controller/process/proc/catchException(var/exception/e, var/thrower)
|
||||
if(istype(e)) // Real runtimes go to the real error handler
|
||||
// There are two newlines here, because handling desc sucks
|
||||
e.desc = " Caught by process: [name]\n\n" + e.desc
|
||||
world.Error(e, e_src = thrower)
|
||||
log_runtime(e, thrower, "Caught by process: [name]")
|
||||
return
|
||||
var/etext = "[e]"
|
||||
var/eid = "[e]" // Exception ID, for tracking repeated exceptions
|
||||
|
||||
@@ -18,9 +18,8 @@
|
||||
var/log_adminwarn = 0 // log warnings admins get about bomb construction and such
|
||||
var/log_pda = 0 // log pda messages
|
||||
var/log_world_output = 0 // log world.log << messages
|
||||
var/log_runtimes = 0 // Logs all runtimes.
|
||||
var/log_runtimes = 0 // logs world.log to a file
|
||||
var/log_hrefs = 0 // logs all links clicked in-game. Could be used for debugging and tracking down exploits
|
||||
var/log_runtime = 0 // logs world.log to a file
|
||||
var/sql_enabled = 0 // for sql switching
|
||||
var/allow_admin_ooccolor = 0 // Allows admins with relevant permissions to have their own ooc colour
|
||||
var/allow_vote_restart = 0 // allow votes to restart
|
||||
@@ -288,7 +287,7 @@
|
||||
config.log_hrefs = 1
|
||||
|
||||
if("log_runtime")
|
||||
config.log_runtime = 1
|
||||
config.log_runtimes = 1
|
||||
|
||||
if("mentors")
|
||||
config.mods_are_mentors = 1
|
||||
|
||||
Reference in New Issue
Block a user