mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
always hide PIL.PngImagePlugin's "STREAM" debug messages
Otherwise, enabling verbose messages gives tons of these messages: DEBUG: STREAM b'IHDR' 16 13 DEBUG: STREAM b'IDAT' 41 32768
This commit is contained in:
parent
22aaa3dcbb
commit
781e3c785f
1 changed files with 7 additions and 0 deletions
|
|
@ -128,6 +128,13 @@ default_config = {
|
||||||
|
|
||||||
|
|
||||||
def setup_global_opts(parser):
|
def setup_global_opts(parser):
|
||||||
|
try: # the buildserver VM might not have PIL installed
|
||||||
|
from PIL import PngImagePlugin
|
||||||
|
logger = logging.getLogger(PngImagePlugin.__name__)
|
||||||
|
logger.setLevel(logging.INFO) # tame the "STREAM" debug messages
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
parser.add_argument("-v", "--verbose", action="store_true", default=False,
|
parser.add_argument("-v", "--verbose", action="store_true", default=False,
|
||||||
help=_("Spew out even more information than normal"))
|
help=_("Spew out even more information than normal"))
|
||||||
parser.add_argument("-q", "--quiet", action="store_true", default=False,
|
parser.add_argument("-q", "--quiet", action="store_true", default=False,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue