From 47f0232fb763aba0ebe23b078a9130ae2f3fbe28 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Sun, 22 Oct 2006 20:49:42 +0000 Subject: [PATCH] Typo (LOG_ERROR -> LOG_ERR) --- tools/pusb_hotplug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pusb_hotplug b/tools/pusb_hotplug index 3409682..10dff3c 100755 --- a/tools/pusb_hotplug +++ b/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...')