chrismattmann / tika-python

Tika-Python is a Python binding to the Apache Tika™ REST services allowing Tika to be called natively in the Python community.
Apache License 2.0
1.49k stars 234 forks source link

Dont show output #341

Closed reisner closed 3 years ago

reisner commented 3 years ago

Hi there,

Is it possible to not show INFO messages, such as:

2021-05-07 09:57:38,745 [MainThread  ] [INFO ]  Retrieving URL_HERE to /tmp/filestream.ashx.

I tried setting some env variables in the documentation, but I cant stop the output of these messages to the console.

reisner commented 3 years ago

Sorry for the issue...not experience with python logging. Figured it out, with:

import logging
logger = logging.getLogger('tika.tika')
logger.setLevel(logging.WARNING)