[conduit] Fix HALFactory logging
- From: Alexandre Rosenfeld <arosenfeld src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [conduit] Fix HALFactory logging
- Date: Tue, 10 Aug 2010 18:48:48 +0000 (UTC)
commit 81ab622202a8fe635b1e543147d788aa40152389
Author: David Fraser <davidf sjsoft com>
Date: Tue Aug 10 15:46:58 2010 -0300
Fix HALFactory logging
Signed-off-by: Alexandre Rosenfeld <alexandre rosenfeld gmail com>
conduit/dataproviders/HalFactory.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/conduit/dataproviders/HalFactory.py b/conduit/dataproviders/HalFactory.py
index fa5c0e8..16fe4fe 100644
--- a/conduit/dataproviders/HalFactory.py
+++ b/conduit/dataproviders/HalFactory.py
@@ -1,6 +1,9 @@
import gobject
import dbus
+import logging
+log = logging.getLogger("dataproviders.HalFactory")
+
import conduit.utils as Utils
import conduit.dataproviders.SimpleFactory as SimpleFactory
@@ -43,7 +46,7 @@ class HalFactory(SimpleFactory.SimpleFactory):
#so we force it to
buf[str(x)] = y
except:
- log.warn("Could not get HAL properties for %s" % device_udi)
+ log.warn("Could not get HAL properties for %s" % device)
return buf
def probe(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]