From a169c56eecf2ba11a77b9829346f8958eb8ec3e5 Mon Sep 17 00:00:00 2001
From: Neil <neil@dip.sun.ac.za>
Date: Tue, 28 Nov 2017 16:46:31 +0200
Subject: [PATCH] Standardise logging to match other functions

Fixes Issue #62
---
 BSG Moderator Template/Scripts/python/bsg-dispatcher.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BSG Moderator Template/Scripts/python/bsg-dispatcher.py b/BSG Moderator Template/Scripts/python/bsg-dispatcher.py
index 9f25448..4054bd1 100644
--- a/BSG Moderator Template/Scripts/python/bsg-dispatcher.py	
+++ b/BSG Moderator Template/Scripts/python/bsg-dispatcher.py	
@@ -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')