~robru/friends/refresh-fixup

« back to all changes in this revision

Viewing changes to friends/utils/logging.py

  • Committer: Robert Bruce Park
  • Date: 2012-10-19 18:32:18 UTC
  • Revision ID: robert.park@canonical.com-20121019183218-0s7b5yk7cizwad3k
Make logging *much* more explicit about what is being logged from where.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    except OSError as error:
49
49
        if error.errno != errno.EEXIST:
50
50
            raise
51
 
    log = logging.getLogger('friends.service')
 
51
    log = logging.getLogger(__name__)
52
52
    if debug:
53
53
        log.setLevel(logging.DEBUG)
54
54
    else: