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) port = int(port)
simbase.air.connect(host, port) simbase.air.connect(host, port)
isServer = config.GetBool('is-server', False)
if isServer:
import datetime
try: try:
run() run()
except SystemExit: except SystemExit:
@ -57,4 +62,9 @@ except SystemExit:
except Exception: except Exception:
info = describeException() info = describeException()
simbase.air.writeServerEvent('uberdog-exception', simbase.air.getAvatarIdFromSender(), simbase.air.getAccountIdFromSender(), info) simbase.air.writeServerEvent('uberdog-exception', simbase.air.getAvatarIdFromSender(), simbase.air.getAccountIdFromSender(), info)
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 raise

View file

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