~laney/autopilot/legacy-psutil-children

« back to all changes in this revision

Viewing changes to autopilot/process/_bamf.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:
47
47
_BAMF_BUS_NAME = 'org.ayatana.bamf'
48
48
_X_DISPLAY = None
49
49
 
50
 
logger = logging.getLogger(__name__)
 
50
_logger = logging.getLogger(__name__)
51
51
 
52
52
 
53
53
def get_display():
152
152
        if locale:
153
153
            os.putenv("LC_ALL", locale)
154
154
            addCleanup(os.unsetenv, "LC_ALL")
155
 
            logger.info(
 
155
            _logger.info(
156
156
                "Starting application '%s' with files %r in locale %s",
157
157
                app_name, files, locale)
158
158
        else:
159
 
            logger.info(
 
159
            _logger.info(
160
160
                "Starting application '%s' with files %r", app_name, files)
161
161
 
162
162
        app = self.KNOWN_APPS[app_name]
200
200
            if len(pids):
201
201
                call(["kill"] + pids)
202
202
        except CalledProcessError:
203
 
            logger.warning(
 
203
            _logger.warning(
204
204
                "Tried to close applicaton '%s' but it wasn't running.",
205
205
                app_name)
206
206