diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-28 15:37:55 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-28 15:37:55 -0400 |
commit | fe2993777f86b479bec4e2daf7eef91813537f6d (patch) | |
tree | 2f993b7ae9eca2e0e2d1b65b3fef77f2bdc27156 /func/logger.py | |
parent | 114dd90baf8d300e7ba6f058fe42a0d2ebdbd223 (diff) | |
parent | 99a55551d25a81bf019a90193f084eba386f2512 (diff) | |
download | func-0.0.12.tar.gz func-0.0.12.tar.xz func-0.0.12.zip |
Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/funcv0.0.12
Diffstat (limited to 'func/logger.py')
-rwxr-xr-x | func/logger.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/func/logger.py b/func/logger.py index 681576e..cdfa899 100755 --- a/func/logger.py +++ b/func/logger.py @@ -61,9 +61,9 @@ class AuditLogger(Singleton): if self._no_handlers: self._setup_handlers(logfilepath=logfilepath) - def log_call(self, CN, cert_hash, method, params): + def log_call(self, ip, CN, cert_hash, method, params): # square away a good parseable format at some point -akl - self.logger.info("%s %s %s called with %s" % (CN, cert_hash, method, params)) + self.logger.info("%s %s %s %s called with %s" % (ip, CN, cert_hash, method, params)) def _setup_logging(self): @@ -72,7 +72,7 @@ class AuditLogger(Singleton): def _setup_handlers(self, logfilepath="/var/log/func/audit.log"): handler = logging.FileHandler(logfilepath, "a") self.logger.setLevel(self.loglevel) - formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") + formatter = logging.Formatter("%(asctime)s - %(message)s") handler.setFormatter(formatter) self.logger.addHandler(handler) self._no_handlers = False |