log things to stdout
This commit is contained in:
parent
93adca76e0
commit
b559f97722
|
@ -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)
|
||||
|
|
Reference in New Issue