mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02: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
@ -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…
Reference in New Issue
Block a user