use logging for exceptions in webserver, check BAM_VERBOSE env var

This commit is contained in:
2014-11-21 17:56:57 +01:00
parent 2c9afe8d2f
commit 47a6eaa936
4 changed files with 23 additions and 7 deletions

View File

@@ -35,7 +35,10 @@ del os, sys, path
import logging
log = logging.getLogger("bam_cli")
logging.basicConfig(level=logging.DEBUG)
# if we're a module, don't mess with logging level
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG)
def fatal(msg):