changeset 363:cb1460b9b6cf

Enable debug messages when using --debug
author Thibaut Girka <thib@sitedethib.com>
date Mon, 09 Jul 2012 22:12:04 +0200
parents 3be4c1078095
children b07e2f71f240
files eosd
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/eosd
+++ b/eosd
@@ -16,6 +16,7 @@
 import argparse
 import os
 import sys
+import logging
 
 import pyximport
 pyximport.install()
@@ -78,6 +79,7 @@ def main(path, data, stage_num, rank, ch
         continues = 0
 
     if debug:
+        logging.basicConfig(level=logging.DEBUG)
         continues = float('inf')
 
     if replay: