[gnome-music] player: Replace print statements into logger.warn
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] player: Replace print statements into logger.warn
- Date: Mon, 12 May 2014 08:46:52 +0000 (UTC)
commit 71340251ef5e516dbabc298f033c3f5d74a4ca5c
Author: Arnel Borja <arnelborja src gnome org>
Date: Sat May 3 20:39:41 2014 +0800
player: Replace print statements into logger.warn
gnomemusic/player.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 693501d..27ede8c 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -113,7 +113,7 @@ class Player(GObject.GObject):
def discover_item(self, item, callback, data=None):
url = item.get_url()
if not url:
- print("The item %s doesn't have a URL set" % item)
+ logger.warn("The item %s doesn't have a URL set" % item)
return
obj = (callback, data)
@@ -159,13 +159,13 @@ class Player(GObject.GObject):
uri = media.get_url()
else:
uri = 'none'
- print('URI: ' + uri)
+ logger.warn('URI: ' + uri)
error, debug = message.parse_error()
debug = debug.split('\n')
debug = [(' ') + line.lstrip() for line in debug]
debug = '\n'.join(debug)
- print('Error from element ' + message.src.get_name() + ': ' + error.message)
- print('Debugging info:\n' + debug)
+ logger.warn('Error from element ' + message.src.get_name() + ': ' + error.message)
+ logger.warn('Debugging info:\n' + debug)
self.play_next()
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]