~townsend/autopilot/fix-gcalctool-desktop-file

« back to all changes in this revision

Viewing changes to autopilot/content.py

  • Committer: CI bot
  • Author(s): Thomi Richards, Max Brustkern
  • Date: 2014-04-08 00:29:44 UTC
  • mfrom: (459.6.5 logger-privatization)
  • Revision ID: ps-jenkins@lists.canonical.com-20140408002944-hkq216cwlrrbg3k7
Make logger objects within autopilot private. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import logging
27
27
from testtools.content import ContentType, content_from_stream, text_content
28
28
 
29
 
logger = logging.getLogger(__name__)
 
29
_logger = logging.getLogger(__name__)
30
30
 
31
31
 
32
32
def follow_file(path, test_case, content_name=None):
43
43
    try:
44
44
        file_obj = io.open(path, mode='rb')
45
45
    except IOError as e:
46
 
        logger.error(
 
46
        _logger.error(
47
47
            "Could not add content object '%s' due to IO Error: %s",
48
48
            content_name,
49
49
            str(e)