From abe0d96839b1afb8b9bd80ca8410c3d191e9ae59 Mon Sep 17 00:00:00 2001 From: Alffd Date: Sun, 21 Jan 2018 00:46:13 -0500 Subject: [PATCH] Moves log setup to before world --- code/world.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/world.dm b/code/world.dm index f229d71b6e9..0f129b5e842 100644 --- a/code/world.dm +++ b/code/world.dm @@ -7,7 +7,7 @@ var/global/datum/global_init/init = new () makeDatumRefLists() load_configuration() - + setLog() del(src) /world @@ -23,7 +23,6 @@ var/global/datum/global_init/init = new () var/global/list/map_transition_config = MAP_TRANSITION_CONFIG /world/New() - setLog() diary << "\n\nStarting up. [time2text(world.timeofday, "hh:mm.ss")]\n---------------------" diaryofmeanpeople << "\n\nStarting up. [time2text(world.timeofday, "hh:mm.ss")]\n---------------------" if(byond_version < RECOMMENDED_VERSION) @@ -456,7 +455,7 @@ var/world_topic_spam_protect_time = world.timeofday var/failed_db_connections = 0 var/failed_old_db_connections = 0 -/world/proc/setLog() +proc/setLog() var/date_string = time2text(world.realtime, "YYYY/MM-Month/DD-Day") href_logfile = file("data/logs/[date_string] hrefs.htm") diary = file("data/logs/[date_string].log")