~sylvain-pineau/checkbox/restore_IOLogGenerated

« back to all changes in this revision

Viewing changes to plainbox/plainbox/impl/service.py

  • Committer: Sylvain Pineau
  • Date: 2013-10-11 09:15:35 UTC
  • Revision ID: sylvain.pineau@canonical.com-20131011091535-hwi0y366wxr9hy1a
plainbox:service: Provide a UI output delegate to the PrimeJob runner

Show diffs side-by-side

added added

removed removed

Lines of Context:
1178
1178
            primed_job, session_wrapper=self.find_wrapper_by_native(session))
1179
1179
        # ...publish it...
1180
1180
        primed_job_wrapper.publish_self(self.connection)
 
1181
        # Provide the UI I/O delegate
 
1182
        primed_job._runner._command_io_delegate = UIOutputPrinter(
 
1183
            primed_job_wrapper)
1181
1184
        # Call the method that decides on what to really do, see the docstring
1182
1185
        # for details. This cannot be called inside __init__() as we need to
1183
1186
        # publish the wrapper first. When that happens this method can safely
1439
1442
    def IOLogGenerated(self, delay, stream_name, data):
1440
1443
        """
1441
1444
        Signal sent when IOLogRecord is generated
1442
 
 
1443
 
        ..note::
1444
 
            This is not called at all in this implementation.
1445
1445
        """
1446
 
        logger.info("IOLogGenerated(%r, %r, %r)", delay, stream_name, data)
 
1446
        logger.debug("IOLogGenerated(%r, %r, %r)", delay, stream_name, data)
1447
1447
 
1448
1448
    # Legacy GUI behavior signal.
1449
1449
    # Should be redesigned when we can change GUI internals