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

« back to all changes in this revision

Viewing changes to ubuntu_sso/logger.py

  • Committer: natalia.bidart at canonical
  • Date: 2011-01-11 19:13:19 UTC
  • mto: This revision was merged to the branch mainline in revision 668.
  • Revision ID: natalia.bidart@canonical.com-20110111191319-alzmdkexz9oy2y0l
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