Index: trunk/source/pyhesiodfs/pyHesiodFS.py =================================================================== --- trunk/source/pyhesiodfs/pyHesiodFS.py (revision 150) +++ trunk/source/pyhesiodfs/pyHesiodFS.py (revision 157) @@ -11,4 +11,5 @@ import sys, os, stat, errno +from syslog import * import fuse from fuse import Fuse @@ -52,4 +53,7 @@ def __init__(self, *args, **kwargs): Fuse.__init__(self, *args, **kwargs) + + openlog('pyhesiodfs', 0, LOG_DAEMON) + try: self.fuse_args.add("allow_other", True) @@ -107,12 +111,12 @@ pointer = pointers[0] if pointer['type'] != 'AFS' and pointer['type'] != 'LOC': - print >>sys.stderr, "Unknown locker type "+pointer.type+" for locker "+name+" ("+repr(pointer)+" )" + syslog(LOG_NOTICE, "Unknown locker type "+pointer['type']+" for locker "+name+" ("+repr(pointer)+" )") return None else: self.mounts[name] = pointer['location'] - print >>sys.stderr, "Mounting "+name+" on "+pointer['location'] + syslog(LOG_INFO, "Mounting "+name+" on "+pointer['location']) return pointer['location'] else: - print >>sys.stderr, "Couldn't find filsys for "+name + syslog(LOG_WARNING, "Couldn't find filsys for "+name) return None