diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-31 00:49:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-31 00:49:58 -0300 |
commit | 78edc39fbaba7809edbed7564af7167cd0fcaf5d (patch) | |
tree | 8f705650b9d9da850b9353b33a54be3c8a75b3f7 | |
parent | 76098afe8648a34bbe158dd6c8b55bd66ba96b3f (diff) | |
download | server-78edc39fbaba7809edbed7564af7167cd0fcaf5d.tar.gz server-78edc39fbaba7809edbed7564af7167cd0fcaf5d.tar.bz2 server-78edc39fbaba7809edbed7564af7167cd0fcaf5d.tar.xz server-78edc39fbaba7809edbed7564af7167cd0fcaf5d.zip |
Remove some verbosity; If something goes wrong, rely on traceback.print_exc() instead
Which is not logged but we'll find a way.
-rw-r--r-- | battle/main.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/battle/main.py b/battle/main.py index 5a05dae..fb73487 100644 --- a/battle/main.py +++ b/battle/main.py @@ -387,19 +387,19 @@ def battle(args, token): global allquests, Player, Battle # Data validation try: - stdout("Advance round: %s" % args) + #stdout("Advance round: %s" % args) bt=json.loads(args) - stdout("JSON loaded") + #stdout("JSON loaded") # Validation tmp=len(bt["unit"]) - stdout("vu: %d" % tmp) + #stdout("vu: %d" % tmp) tmp=len(bt["sphere"]) - stdout("vs: %d" % tmp) + #stdout("vs: %d" % tmp) tmp=int(Player[token]["quest"]) # FIXME - stdout("ptq: %d pts: %d" % (tmp, Player[token]["status"])) + #stdout("ptq: %d pts: %d" % (tmp, Player[token]["status"])) if (Player[token]["status"] < ST_QUEST): return ERR_BAD - stdout("validation step 1") + #stdout("validation step 1") # Check if all members you've told us are valid """ @@ -422,6 +422,7 @@ def battle(args, token): """ except: # Invalid data + traceback.print_exc() return ERR_BAD ####################################### |