diff --git a/pam_usb/tools/pusb_hotplug b/pam_usb/tools/pusb_hotplug index 3409682..10dff3c 100755 --- a/pam_usb/tools/pusb_hotplug +++ b/pam_usb/tools/pusb_hotplug @@ -96,7 +96,7 @@ class Log: self.__logMessage(syslog.LOG_NOTICE, message) def error(self, message): - self.__logMessage(syslog.LOG_ERROR, message) + self.__logMessage(syslog.LOG_ERR, message) def __logMessage(self, priority, message): syslog.syslog(priority, message) @@ -210,4 +210,4 @@ logger.info('Watching device "%s" for user "%s"' % (deviceName, username)) try: hpDev.run() except KeyboardInterrupt: - print 'Exiting...' + logger.error('Caught keyboard interruption, exiting...')