diff --git a/src/sst/__init__.py b/src/sst/__init__.py index ee926de..086789c 100644 --- a/src/sst/__init__.py +++ b/src/sst/__init__.py @@ -18,7 +18,7 @@ # -__version__ = '0.2.9.2' +__version__ = '0.2.9.3' DEVSERVER_PORT = 8120 # django devserver for internal acceptance tests diff --git a/src/sst/command.py b/src/sst/command.py index 62fbeb3..0eda40e 100644 --- a/src/sst/command.py +++ b/src/sst/command.py @@ -119,6 +119,9 @@ def get_common_options(): parser.add_option('--log', '--log-level', dest='log_level', default='DEBUG', help=('Set log level for SST logger')) + parser.add_option('--log-format', dest='log_format', + default=' %(asctime)s %(threadName)s %(levelname)s:%(name)s:%(message)s', + help=('Set log format for SST logger')) parser.add_option('-c', '--concurrency', dest='concurrency', default=1, type='int', help='concurrency (number of procs)') @@ -176,7 +179,7 @@ def get_opts(get_options, args=None): cmd_opts.browser_type, browsers.browser_factories.keys()) sys.exit(1) - logging.basicConfig(format=' %(levelname)s:%(name)s:%(message)s') + logging.basicConfig(format=cmd_opts.log_format) logger = logging.getLogger('SST') numeric_level = getattr(logging, cmd_opts.log_level.upper(), logging.DEBUG)