From 5bc1516d020cd5b304d0364b74b65d6f3239809c Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Mon, 3 Oct 2011 10:08:08 -0400 Subject: Create a chroma.log module that provides the default logger object for the package. Rather than use the logging module directly, we wrap it with this to ensure that logger.basicConfig() is called automatically. All chroma code should use this logger for printing status information so that it can be hidden when chroma is part of a bigger application. --- bin/chroma-cam | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/chroma-cam') diff --git a/bin/chroma-cam b/bin/chroma-cam index e81469e..25f0eb3 100755 --- a/bin/chroma-cam +++ b/bin/chroma-cam @@ -9,6 +9,8 @@ if __name__ == '__main__': from chroma import view, build, EventViewer from chroma import mesh_from_stl from chroma.tools import enable_debug_on_crash + from chroma.log import logger, logging + logger.setLevel(logging.INFO) parser = optparse.OptionParser('%prog') parser.add_option('--debug', dest='debug', action='store_true', -- cgit