~mvo/ubuntu-sso-client/strawman-lp711413

« back to all changes in this revision

Viewing changes to ubuntu_sso/logger.py

  • Committer: Tarmac
  • Author(s): natalia.bidart at canonical
  • Date: 2011-01-12 15:29:23 UTC
  • mfrom: (667.1.1 shutdown)
  • Revision ID: tarmac-20110112152923-xhd42r02kwe430sj
The service should shutdown when unused (LP: #701606).

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    logger.addHandler(MAIN_HANDLER)
58
58
    if os.environ.get('DEBUG'):
59
59
        debug_handler = logging.StreamHandler(sys.stderr)
 
60
        debug_handler.setFormatter(logging.Formatter(fmt=FMT))
60
61
        logger.addHandler(debug_handler)
61
62
 
62
63
    return logger