You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
diff -up hplip-3.15.2/fax/backend/hpfax.py.log-stderr hplip-3.15.2/fax/backend/hpfax.py |
|
--- hplip-3.15.2/fax/backend/hpfax.py.log-stderr 2015-01-29 13:20:35.000000000 +0100 |
|
+++ hplip-3.15.2/fax/backend/hpfax.py 2015-02-04 15:40:48.360972449 +0100 |
|
@@ -55,7 +55,10 @@ home_dir = '' |
|
|
|
def bug(msg): |
|
syslog.syslog("hpfax[%d]: error: %s\n" % (pid, msg)) |
|
- log.stderr("ERROR: %s\n" % msg) |
|
+ try: |
|
+ log.stderr("ERROR: %s" % msg) |
|
+ except NameError: |
|
+ sys.stderr.write("ERROR: %s\n" % msg) |
|
|
|
|
|
if os.path.exists(config_file): |
|
diff -up hplip-3.15.2/prnt/filters/hpps.log-stderr hplip-3.15.2/prnt/filters/hpps |
|
--- hplip-3.15.2/prnt/filters/hpps.log-stderr 2015-02-04 15:40:48.360972449 +0100 |
|
+++ hplip-3.15.2/prnt/filters/hpps 2015-02-04 15:43:14.796878364 +0100 |
|
@@ -53,10 +53,16 @@ home_dir = '' |
|
|
|
|
|
def bug(m): |
|
- log.stderr("ERROR: %s" % m) |
|
+ try: |
|
+ log.stderr("ERROR: %s" % m) |
|
+ except NameError: |
|
+ sys.stderr.write("ERROR: %s\n" % m) |
|
|
|
def msg(m): |
|
- log.stderr("INFO: %s" % m) |
|
+ try: |
|
+ log.stderr("INFO: %s" % msg) |
|
+ except NameError: |
|
+ sys.stderr.write("INFO: %s\n" % msg) |
|
|
|
if os.path.exists(config_file): |
|
config = configparser.ConfigParser()
|
|
|