summaryrefslogtreecommitdiffstats
path: root/ocrloader.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-09-23 12:25:23 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-09-23 12:25:23 (GMT)
commitb559f9772219379e3c3e8ad23e6459829fea5e50 (patch)
treed503835abc3afc4851882d05c370df6e8ee43f77 /ocrloader.py
parent93adca76e0855a84aa9bd998d3e7c36edbf3f44e (diff)
downloadpfwbged.ocrloader-b559f9772219379e3c3e8ad23e6459829fea5e50.zip
pfwbged.ocrloader-b559f9772219379e3c3e8ad23e6459829fea5e50.tar.gz
pfwbged.ocrloader-b559f9772219379e3c3e8ad23e6459829fea5e50.tar.bz2
log things to stdout
Diffstat (limited to 'ocrloader.py')
-rwxr-xr-xocrloader.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ocrloader.py b/ocrloader.py
index 34a75fd..5da4210 100755
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -29,6 +29,7 @@ import logging
logging.basicConfig(level=logging.DEBUG,
filename='/var/log/pfwbged.ocrloader.log',
format='%(asctime)s %(message)s')
+logging.getLogger().addHandler(logging.StreamHandler())
def process(cfg, filename, payload, enable_ocr=True):
ocr_filename = os.path.join(cfg.get('ocrized_directory'), filename)