mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user