thecore_print_commons 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/workers/print_worker.rb +3 -2
- data/lib/thecore_print_commons/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d812920872778da561c44924739d6c61b4f6a79
|
4
|
+
data.tar.gz: 850d5e693ffc0f159463b8bdd8d1cbd54458f6fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5675dea004ca73c41de752081b04577975d2681add7e9a6077eb87e764dfaad611dc5ae769d77fc48f369858abaaf3745581a42052a269728a461e2648872e
|
7
|
+
data.tar.gz: 781e9aa5a1718d865fcd449e3e865b327b5e91f65cb1bf107190dac16d133823989f30a5627afc20070cb89f559dde1bed311b54760463ecb0ff743be8df0647
|
data/app/workers/print_worker.rb
CHANGED
@@ -9,8 +9,9 @@ class PrintWorker
|
|
9
9
|
CupsPrinter.new printer_cups_name, hostname: Settings.ns(:printer_commons).cups_server
|
10
10
|
end
|
11
11
|
printer.print_data text, 'text/plain'
|
12
|
-
rescue
|
13
|
-
Rails.logger.debug("PRINTER #{printer_cups_name} ERROR: #{
|
12
|
+
rescue => error
|
13
|
+
Rails.logger.debug("PRINTER #{printer_cups_name} ERROR: #{$!.message}")
|
14
|
+
Rails.logger.debug($!.backtrace)
|
14
15
|
end
|
15
16
|
end
|
16
17
|
end
|