[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819
Michael 'Mickey' Lauer
mickey at vanille-media.de
Sat Aug 6 08:20:00 UTC 2011
The following commit has been merged in the debian branch:
commit 5d16ea826182cfed4df53939e4ae237019265d26
Author: Antonio Ospite <ospite at studenti.unina.it>
Date: Fri May 21 14:13:57 2010 +0200
ogsmd: freescale_neptune, enable proper logging for URCs
Signed-off-by: Antonio Ospite <ospite at studenti.unina.it>
diff --git a/framework/subsystems/ogsmd/modems/freescale_neptune/unsolicited.py b/framework/subsystems/ogsmd/modems/freescale_neptune/unsolicited.py
index fce4249..1e96c32 100644
--- a/framework/subsystems/ogsmd/modems/freescale_neptune/unsolicited.py
+++ b/framework/subsystems/ogsmd/modems/freescale_neptune/unsolicited.py
@@ -10,6 +10,7 @@ __version__ = "0.8.2.0"
MODULE_NAME = "ogsmd.modems.freescale_neptune.unsolicited"
from ogsmd.modems.abstract.unsolicited import AbstractUnsolicitedResponseDelegate
+from ogsmd.gsm.decor import logged
from ogsmd.gsm import const
from ogsmd.helpers import safesplit
import ogsmd.gsm.sms
@@ -36,7 +37,7 @@ class UnsolicitedResponseDelegate( AbstractUnsolicitedResponseDelegate ):
# +CESS: 3, 14
def plusCESS( self, righthandside ):
- print "EZX: CESS", righthandside
+ logger.debug("EZX: CESS", righthandside)
def plusCIEV( self, righthandside ):
"""
@@ -61,35 +62,35 @@ class UnsolicitedResponseDelegate( AbstractUnsolicitedResponseDelegate ):
try:
method = getattr( self, "CIEV_%d" % indicator )
except AttributeError:
- print "EZX: unhandled CIEV", indicator, value
+ logger.debug("EZX: unhandled CIEV", indicator, value)
else:
method( value )
def CIEV_0( self, chargelevel ):
- print "EZX: CHARGE LEVEL:", chargelevel
+ logger.debug("EZX: CHARGE LEVEL:", chargelevel)
def CIEV_1( self, signallevel ):
self._object.SignalStrength( 20*signallevel )
- print "EZX: SIGNAL: ", signallevel
+ logger.debug("EZX: SIGNAL: ", signallevel)
def CIEV_2( self, service ):
- print "EZX: SERVICE:", bool(service)
+ logger.debug("EZX: SERVICE:", bool(service))
def CIEV_3( self, present ):
- print "EZX: CALL PRESENT:", bool(present)
+ logger.debug("EZX: CALL PRESENT:", bool(present))
self._syncCallStatus( "CIEV" )
def CIEV_4( self, voicemail ):
- print "EZX: VOICEMAIL:", bool(voicemail)
+ logger.debug("EZX: VOICEMAIL:", bool(voicemail))
def CIEV_5( self, voice_activity ):
- print "EZX: VOICE ACTIVITY:", bool(voice_activity)
+ logger.debug("EZX: VOICE ACTIVITY:", bool(voice_activity))
def CIEV_6( self, call_progress ):
- print "EZX: CALL PROGRESS:", call_progress
+ logger.debug("EZX: CALL PROGRESS:", call_progress)
def CIEV_7( self, roaming ):
- print "EZX: ROAMING:", roaming
+ logger.debug("EZX: ROAMING:", roaming)
self._object.modem.setData( "network:roaming", bool(roaming) )
# +CLIP: "+4969123456789",145
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list