Import osrf.log and reference it when we attempt to log
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 19 Mar 2011 05:33:34 +0000 (05:33 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 19 Mar 2011 05:33:34 +0000 (05:33 +0000)
This bare call to log_info was just hanging out, waiting for
someone to stumble across it.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19820 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/python/oils/utils/utils.py

index 6a72aa7..367ea99 100644 (file)
@@ -18,7 +18,7 @@ Grab-bag of general utility functions
 # -----------------------------------------------------------------------
 
 import hashlib
-import osrf.ses
+import osrf.log, osrf.ses
 
 def md5sum(string):
     """
@@ -62,7 +62,7 @@ def login(username, password, login_type=None, workstation=None):
         a required parameter of many OpenSRF service calls
     """
 
-    log_info("attempting login with user " + username)
+    osrf.log.log_info("attempting login with user " + username)
 
     seed = osrf.ses.ClientSession.atomic_request(
         'open-ils.auth',