Better logging (#16164)

* Initial

* Cleared duplicates

* More work, get rid of log_error

* more

* log_debug() to macro LOG_DEBUG

* More work

* More

* Guh

* Maybe better?

* More work

* gah

* Dear lord

* *inserts swears here*

* gdi

* More work

* More

* dear lord

* fsdfsdafs

* rsdaf

* sadfasf

* sdafsad

* fgsd

* small fuckup fix

* jfsd

* sdafasf

* gdi

* sdfa

* sfdafgds

* sdafasdvf

* sdfasdfg

* sdfsga

* asdf

* dsfasfsagf

* ihibhbjh

* fsadf

* adfas

* sdafsad

* sdfasd

* fsda

* vhb

* asf

* for arrow

* removed source file-line logging, added header for tgui
This commit is contained in:
Fluffy
2023-08-05 21:53:11 +00:00
committed by GitHub
parent 40faa01587
commit b183188689
194 changed files with 1637 additions and 877 deletions
@@ -43,10 +43,10 @@ NTSL2 deamon management subsystem, responsible for handling events from deamon a
*/
/datum/controller/subsystem/processing/ntsl2/proc/handle_response(var/datum/http_response/response, var/command)
if (response.errored)
log_debug("NTSL2++: Proc error while performing command '[command]': [response.error]")
LOG_DEBUG("NTSL2++: Proc error while performing command '[command]': [response.error]")
return FALSE
else if (response.status_code != 200)
log_debug("NTSL2++: HTTP error while performing command '[command]': [response.status_code]")
LOG_DEBUG("NTSL2++: HTTP error while performing command '[command]': [response.status_code]")
return FALSE
else
return response.body
@@ -92,7 +92,7 @@ NTSL2 deamon management subsystem, responsible for handling events from deamon a
callback.InvokeAsync()
return
if("execute")
log_debug("NTSL2++ Daemon could not be connected to. Functionality will not be enabled.")
LOG_DEBUG("NTSL2++ Daemon could not be connected to. Functionality will not be enabled.")
// Not sure what to do with successful / unsuccessful execution
return
if("computer/get_buffer")
@@ -119,15 +119,15 @@ NTSL2 deamon management subsystem, responsible for handling events from deamon a
/datum/controller/subsystem/processing/ntsl2/proc/attempt_connect()
if(config.ntsl_disabled)
log_debug("NTSL2++ Daemon disabled via config")
LOG_DEBUG("NTSL2++ Daemon disabled via config")
return FALSE
var/res = sync_send("clear")
if(!res)
log_debug("NTSL2++ Daemon could not be connected to. Functionality will not be enabled.")
LOG_DEBUG("NTSL2++ Daemon could not be connected to. Functionality will not be enabled.")
return FALSE
else
connected = TRUE
log_debug("NTSL2++ Daemon connected successfully.")
LOG_DEBUG("NTSL2++ Daemon connected successfully.")
return TRUE
/datum/controller/subsystem/processing/ntsl2/proc/disconnect()
@@ -164,7 +164,7 @@ var/datum/controller/subsystem/shuttle/SSshuttle
S.motherdock = S.current_location.landmark_tag
mothership.shuttle_area |= S.shuttle_area
else
log_error("Shuttle [S] was unable to find mothership [mothership]!")
log_world("ERROR: Shuttle [S] was unable to find mothership [mothership]!")
/datum/controller/subsystem/shuttle/proc/toggle_overmap(new_setting)
if(overmap_halted == new_setting)