Skip to content

Commit

Permalink
Standardise logging to match other functions
Browse files Browse the repository at this point in the history
Fixes Issue Jasperhawk#62
  • Loading branch information
Neil committed Nov 28, 2017
1 parent 37a329a commit 59183a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BSG Moderator Template/Scripts/python/bsg-dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def dispatcher_call(*args):
document = XSCRIPTCONTEXT.getDocument()
maindir = urllib2.url2pathname(os.path.dirname(document.Location.replace("file://","")))
logfile = os.path.join(maindir, 'bsg-dispatcher-debug.log')
sys.stdout = open(logfile, "a", 0) # unbuffered
sys.stdout = open(logfile, "ab", 0) # unbuffered

# Useful variables so we don't need to do a lot of typing
worksheet = document.getSheets().getByName('Game State')
Expand Down

0 comments on commit 59183a4

Please sign in to comment.