client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py | 5 -----
client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py | 1 +
2 files changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 430574d855766ca0664db3411fd37349cb4aa5e5
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Feb 19 14:39:25 2010 +0100
Move the logging of XMLRPC calls down to up2date_client/rpcServer.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
index 4cdbb8c..5ac55d8 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
@@ -475,7 +475,6 @@ def registerSystem2(username = None, password = None,
activationKey,
other)
else:
- log.log_debug("Calling xmlrpc registration.new_system_user_pass.")
info = s.registration.new_system_user_pass(profileName,
up2dateUtils.getOSRelease(),
up2dateUtils.getVersion(),
@@ -531,8 +530,6 @@ def getRemainingSubscriptions(username, password):
#bz: 442694
release = up2dateUtils.getVersion()
version = up2dateUtils.getRelease()
- log.log_debug('Calling xmlrpc registration.remaining_subscriptions')
-
virt_uuid, virt_type = get_virt_info()
if virt_uuid is not None:
@@ -709,7 +706,6 @@ def activateRegistrationNumber(username, password,
registrationNumber,
Communication errors, etc
"""
- log.log_debug('Calling xmlrpc activate_registration_number.')
server = rhnserver.RhnServer()
## if server.capabilities.hasCapability(
## 'registration.activate_subscription_number'):
@@ -754,7 +750,6 @@ def activateHardwareInfo(username, password, hardwareInfo,
orgId=None):
"""
## import pprint
## pprint.pprint(hardwareInfo)
- log.log_debug('Calling xmlrpc activate_hardware_info.')
other = {}
if orgId:
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
b/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
index 6e0794e..8ca327a 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
@@ -187,6 +187,7 @@ def getServer(refreshCallback=None):
def doCall(method, *args, **kwargs):
log = up2dateLog.initLog()
+ log.log_debug("rpcServer: Calling XMLRPC %s" %
method.__dict__['_Method__name'])
cfg = config.initUp2dateConfig()
ret = None
Show replies by date