Skip to content

Commit

Permalink
make it possible to log all messages, including 'TRACE' level, even w…
Browse files Browse the repository at this point in the history
…hen we have called suspend_nonfatal_logging

git-svn-id: https://xpra.org/svn/Xpra/trunk@26750 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 17, 2020
1 parent 3a62931 commit 18f91db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/codecs/libav_common/av_log.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@

from xpra.os_util import bytestostr
from xpra.util import nonl
from xpra.log import Logger
from xpra.log import Logger, is_debug_enabled
log = Logger("libav")

LIBAV_DEBUG = is_debug_enabled("libav")


cdef extern from "libavutil/error.h":
int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
Expand Down Expand Up @@ -74,6 +76,8 @@ cdef void log_callback_override(void *avcl, int level, const char *fmt, va_list
elif level<=DEBUG_LEVEL:
l = log.debug
else:
if LIBAV_DEBUG:
l = log.debug
#don't bother
return
#turn it into a string:
Expand Down

0 comments on commit 18f91db

Please sign in to comment.