Open jitka opened 4 years ago
A quick solution is to ignore the GELFChunkOverflowWarning
warnings by prefixing your code with:
warnings.filterwarnings("ignore", category=GELFChunkOverflowWarning)
If you know the image header's magic numbers you can also add them to the the call to warnings.filterwarnings
with the message
argument to further filter down your suppression of GELFChunkOverflowWarning
warnings.
I would also look at https://docs.python.org/3/library/warnings.html#the-warnings-filter for reference.
I am using logger with three handlers:
Reportportal handler is able to log images. So I would like to log them and I am expecting that console log and graypy log in this situation remain silent or print some warring.
Graypy, however, post waring which contains the whole big image in binary and make impossible to read other console logs.
I would like to see warring which contains only informartion about binary content or short preview.