Fix a traceback in logger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While debuggin something else, I noticed that func is generating a traceback
in the logging module.  Since it's inside the logging module, it's being
displayed when funcd is run but not stopping execution of the code.
Attaching a patch to fix it.

-Toshio
From da6d54faeaf2ae7012f56fee87a2c57f026e2f2e Mon Sep 17 00:00:00 2001
From: Toshio Kuratomi <toshio@xxxxxxxxxxxxxxxxx>
Date: Tue, 27 Apr 2010 17:09:29 -0400
Subject: [PATCH 1/2] Fix for a traceback in logger

---
 func/minion/acls.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/func/minion/acls.py b/func/minion/acls.py
index 46ae9c2..fec3be0 100644
--- a/func/minion/acls.py
+++ b/func/minion/acls.py
@@ -46,7 +46,7 @@ class Acls(object):
         files = glob.glob(acl_glob)
     
         for acl_file in files:
-            self.logger.debug("acl_file", acl_file)
+            self.logger.debug("acl_file %s", acl_file)
             try:
                 fo = open(acl_file, 'r')
             except (IOError, OSError), e:
-- 
1.6.6.1

Attachment: pgpxMILXaJEz0.pgp
Description: PGP signature

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux