Blame SOURCES/hplip-log-stderr.patch

106675
diff -up hplip-3.15.2/fax/backend/hpfax.py.log-stderr hplip-3.15.2/fax/backend/hpfax.py
106675
--- hplip-3.15.2/fax/backend/hpfax.py.log-stderr	2015-01-29 13:20:35.000000000 +0100
106675
+++ hplip-3.15.2/fax/backend/hpfax.py	2015-02-04 15:40:48.360972449 +0100
106675
@@ -55,7 +55,10 @@ home_dir = ''
106675
 
106675
 def bug(msg):
106675
     syslog.syslog("hpfax[%d]: error: %s\n" % (pid, msg))
106675
-    log.stderr("ERROR: %s\n" % msg)
106675
+    try:
106675
+        log.stderr("ERROR: %s" % msg)
106675
+    except NameError:
106675
+        sys.stderr.write("ERROR: %s\n" % msg)
106675
 
106675
 
106675
 if os.path.exists(config_file):
106675
diff -up hplip-3.15.2/prnt/filters/hpps.log-stderr hplip-3.15.2/prnt/filters/hpps
106675
--- hplip-3.15.2/prnt/filters/hpps.log-stderr	2015-02-04 15:40:48.360972449 +0100
106675
+++ hplip-3.15.2/prnt/filters/hpps	2015-02-04 15:43:14.796878364 +0100
106675
@@ -53,10 +53,16 @@ home_dir = ''
106675
 
106675
 
106675
 def bug(m):
106675
-    log.stderr("ERROR: %s" % m)
106675
+    try:
106675
+        log.stderr("ERROR: %s" % m)
106675
+    except NameError:
106675
+        sys.stderr.write("ERROR: %s\n" % m)
106675
 
106675
 def msg(m):
106675
-    log.stderr("INFO: %s" % m)
106675
+    try:
106675
+        log.stderr("INFO: %s" % msg)
106675
+    except NameError:
106675
+        sys.stderr.write("INFO: %s\n" % msg)
106675
 
106675
 if os.path.exists(config_file):
106675
     config = configparser.ConfigParser()