summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-02-13 20:12:20 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2016-02-13 20:12:20 +0200
commite318ffa38b50895359799588c396f64eeb40175b (patch)
tree3141860b058fe604a070a5e9fd9a9a645b678965
parent7f8fa2bbe47e881a486ac08f67ce7b6c05ea1b56 (diff)
Clarify logging output
-rwxr-xr-xvaloviini/Valoviini.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/valoviini/Valoviini.py b/valoviini/Valoviini.py
index ad7a121..c6e1fb1 100755
--- a/valoviini/Valoviini.py
+++ b/valoviini/Valoviini.py
@@ -175,19 +175,18 @@ class WineInstance(object):
175 175
176 def _process_begin_cb(exe, event, *args, **kwargs): 176 def _process_begin_cb(exe, event, *args, **kwargs):
177 self.callbacks["instance_started"](exe, event) 177 self.callbacks["instance_started"](exe, event)
178 print(event)
179 178
180 def _process_end_cb(exe, event, *args, **kwargs): 179 def _process_end_cb(exe, event, *args, **kwargs):
181 self.callbacks["instance_ended"](exe, event) 180 self.callbacks["instance_ended"](exe, event)
182 181
183 def _data_event_cb(exe, event, *args, **kwargs): 182 def _data_event_cb(exe, event, *args, **kwargs):
184 for line in event.lines: 183 for line in event.lines:
185 self.logger.info(line) 184 self.logger.info("stdout: %s", line)
186 self.callbacks["process_stdout"](exe, event) 185 self.callbacks["process_stdout"](exe, event)
187 186
188 def _err_event_cb(exe, event, *args, **kwargs): 187 def _err_event_cb(exe, event, *args, **kwargs):
189 for line in event.lines: 188 for line in event.lines:
190 self.logger.error(line) 189 self.logger.info("stderr: %s", line)
191 self.callbacks["process_stderr"](exe, event) 190 self.callbacks["process_stderr"](exe, event)
192 191
193 process.on_add_event_add(_process_begin_cb) 192 process.on_add_event_add(_process_begin_cb)
@@ -203,5 +202,6 @@ class WineInstance(object):
203 202
204 203
205if __name__ == "__main__": 204if __name__ == "__main__":
205 logger.setLevel(logging.INFO)
206 valoviini = Valoviini() 206 valoviini = Valoviini()
207 logging.shutdown() 207 logging.shutdown()