Add more logging

This commit is contained in:
Jordan Brown
2020-04-28 14:18:57 -04:00
parent 0b93c86ee7
commit 166b659be0
+9
View File
@@ -1,21 +1,30 @@
/world/New()
log << "About to call TgsNew()"
TgsNew(minimum_required_security_level = TGS_SECURITY_SAFE)
log << "About to call StartAsync()"
StartAsync()
/proc/StartAsync()
set waitfor = FALSE
world.log << "First sleep"
sleep(50)
world.log << "Priming..."
world.TgsInitializationComplete()
world.log << "Second sleep"
sleep(50)
world.log << "Validating API sleep"
// Validate TGS_DMAPI_VERSION against DMAPI version used
var/datum/tgs_version/active_version = world.TgsApiVersion()
var/datum/tgs_version/dmapi_version = new /datum/tgs_version(TGS_DMAPI_VERSION)
if(!active_version.Equals(dmapi_version))
text2file("DMAPI version [TGS_DMAPI_VERSION] does not match active API version [active_version.raw_parameter]", "test_fail_reason.txt")
world.log << "Terminating..."
world.TgsEndProcess()
world.log << "You really shouldn't be able to read this"
/world/Topic(T, Addr, Master, Keys)
TGS_TOPIC