Jumble, WHY U DELETE MY COMMITS <3

This commit is contained in:
Alexander 2015-08-16 14:01:39 -04:00
parent b51df42bdb
commit 398ede7a85
2 changed files with 12 additions and 1 deletions

View file

@ -50,6 +50,11 @@ if ':' in host:
port = int(port)
simbase.air.connect(host, port)
isServer = config.GetBool('is-server', False)
if isServer:
import datetime
try:
run()
except SystemExit:
@ -57,4 +62,9 @@ except SystemExit:
except Exception:
info = describeException()
simbase.air.writeServerEvent('uberdog-exception', simbase.air.getAvatarIdFromSender(), simbase.air.getAccountIdFromSender(), info)
raise
if isServer:
with open(config.GetString('ud-crash-log-name', '/opt/var/log/Uberdog-crash-%s.txt' % (datetime.datetime.now())), 'w+') as file:
file.write(info + "\n")
raise

View file

@ -4,6 +4,7 @@ from toontown.distributed.ToontownNetMessengerAI import ToontownNetMessengerAI
from direct.distributed.PyDatagram import PyDatagram
import traceback
import sys
import urlparse
class ToontownInternalRepository(AstronInternalRepository):
GameGlobalsId = OTP_DO_ID_TOONTOWN