diff options
author | MaZderMind <github@mazdermind.de> | 2015-05-14 17:30:11 +0200 |
---|---|---|
committer | MaZderMind <github@mazdermind.de> | 2015-05-14 17:30:11 +0200 |
commit | fbd6d801ed08d560e050c48048e419be6fd35e3a (patch) | |
tree | 0f58d5cf531e8c138082d71da5c313d1e3b908bf /voctocore/lib/avsource.py | |
parent | 66d7b53682f87541dcd0970bd76bcb3b677977fb (diff) |
Improve/Repair Logging
Diffstat (limited to 'voctocore/lib/avsource.py')
-rw-r--r-- | voctocore/lib/avsource.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/voctocore/lib/avsource.py b/voctocore/lib/avsource.py index ff36470..49b39a8 100644 --- a/voctocore/lib/avsource.py +++ b/voctocore/lib/avsource.py @@ -81,19 +81,20 @@ class AVSource(object): return True def on_eos(self, bus, message): - self.log.info('Received End-of-Stream-Signal on Source-Pipeline') + self.log.debug('Received End-of-Stream-Signal on Source-Pipeline') if self.currentConnection is not None: self.disconnect() def on_error(self, bus, message): - self.log.info('Received Error-Signal on Source-Pipeline') - (code, debug) = message.parse_error() - self.log.debug('Error-Details: #%u: %s', code, debug) + self.log.debug('Received Error-Signal on Source-Pipeline') + (error, debug) = message.parse_error() + self.log.debug('Error-Details: #%u: %s', error.code, debug) if self.currentConnection is not None: self.disconnect() def disconnect(self): + self.log.info('Connection closed') self.receiverPipeline.set_state(Gst.State.NULL) self.receiverPipeline = None self.currentConnection = None |