Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Nov 17, 2023
1 parent 8502831 commit 2397ea8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ GLOBAL_VAR(href_logfile)
var/date_string = time2text(world.realtime, "YYYY/MM/DD")
// [SIERRA-EDIT] - RUST_G
// to_file(global.diary, "[log_end]\n[log_end]\nStarting up. (ID: [game_id]) [time2text(world.timeofday, "hh:mm.ss")][log_end]\n---------------------[log_end]") // SIERRA-EDIT - ORIGINAL

// Do not use `game_log` anywhere else! Use `log_game`!
rustg_log_write_formatted("[GLOB.log_directory]/game.log", "Starting up. (ID: [game_id])\n---------------------------")
// [/SIERRA-EDIT]

Expand Down Expand Up @@ -125,7 +123,12 @@ GLOBAL_VAR_INIT(world_topic_last, world.timeofday)


/world/Topic(T, addr, master, key)
to_file(global.diary, "TOPIC: \"[T]\", from:[addr], master:[master], key:[key][log_end]")
// [SIERRA-EDIT] - RUST_G
// to_file(global.diary, "TOPIC: \"[T]\", from:[addr], master:[master], key:[key][log_end]") // SIERRA-EDIT - ORIGINAL

// Currently we have no need in topic log
// game_log("TOPIC","url:\"[T]\", from:[addr], master:[master], key:[key][log_end]" )
// [/SIERRA-EDIT]

if (GLOB.world_topic_last > world.timeofday)
GLOB.world_topic_throttle = list() //probably passed midnight
Expand Down

0 comments on commit 2397ea8

Please sign in to comment.