[pkg-fso-commits] [SCM] framworkd debian packageing branch, master, updated. milestone2-110-g76700a0
Michael 'Mickey' Lauer
mickey at vanille-media.de
Tue Sep 2 10:34:59 UTC 2008
The following commit has been merged in the master branch:
commit 661f4fdd2a9eaac9b47b4c592d487f5dc17a93fd
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Thu Aug 28 21:26:17 2008 +0200
remove LOG compatibility support. We are now fully converted to Python Logging. Closes FSO #26
diff --git a/ChangeLog b/ChangeLog
index a879607..a485ff7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-27 Michael Lauer <mickey at openmoko.org>
+
+ * Remove remaining LOG calls. We are now fully converted to Python logging!
+
2008-08-27 Jan Luebbe <jluebbe at debian.org>
* [ousaged] The ResourceChanged signal now contains more information
diff --git a/framework/config.py b/framework/config.py
index 0a0271d..a6e87db 100644
--- a/framework/config.py
+++ b/framework/config.py
@@ -16,35 +16,15 @@ DBUS_PATH_PREFIX = "/org/freesmartphone"
NEEDS_VERSION = 1
-__version__ = "1.0.0"
+__version__ = "1.0.1"
from configparse import SmartConfigParser
-from syslog import LOG_ERR, LOG_WARNING, LOG_INFO, LOG_DEBUG
-
import os
import logging
logger = logging.getLogger( "frameworkd" )
-# FIXME This dict map syslog message levels to logging message levels
-# FIXME Remove this when we have removed all of the deprecated 'LOG' calls
-logging_levels_map = {
- LOG_ERR : logging.ERROR,
- LOG_WARNING : logging.WARNING,
- LOG_INFO : logging.INFO,
- LOG_DEBUG : logging.DEBUG,
-}
-
-def LOG(level, *values):
- """log a message
-
- this function is deprecated, we should use logging module instead
- """
- if level == LOG_ERR:
- values = values + (format_exc(),)
- logger.log(logging_levels_map[level], ' '.join(str(i) for i in values))
-
logging.basicConfig(
level=logging.INFO,
format='%(name)-8s %(levelname)-8s %(message)s'
--
framworkd debian packageing
More information about the pkg-fso-commits
mailing list