mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
Merge pull request #10213 from MrStonedOne/runtimelogs
Adds optional runtime logging
This commit is contained in:
@@ -337,6 +337,11 @@
|
||||
config.irc_first_connection_alert = 1
|
||||
if("aggressive_changelog")
|
||||
config.aggressive_changelog = 1
|
||||
if("log_runtimes")
|
||||
var/newlog = file("data/logs/runtimes/runtime-[time2text(world.realtime, "YYYY-MM-DD")].log")
|
||||
if (world.log != newlog)
|
||||
world.log << "Now logging runtimes to data/logs/runtimes/runtime-[time2text(world.realtime, "YYYY-MM-DD")].log"
|
||||
world.log = newlog
|
||||
else
|
||||
diary << "Unknown setting in configuration: '[name]'"
|
||||
|
||||
|
||||
+4
-1
@@ -190,4 +190,7 @@ NOTIFY_NEW_PLAYER_AGE 0
|
||||
#PANIC_BUNKER
|
||||
|
||||
## Uncomment to have the changelog file automatically open when a user connects and hasn't seen the latest changelog
|
||||
#AGGRESSIVE_CHANGELOG
|
||||
#AGGRESSIVE_CHANGELOG
|
||||
|
||||
## Uncomment to have the game log runtimes to the log folder. (Note: this disables normal output in dd/ds, so it should be left off for testing.
|
||||
#LOG_RUNTIMES
|
||||
Reference in New Issue
Block a user