You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to capture the stderr from server, I saw there is a params named: errlog, its default value is sys.stderr, that caused any stderr from server side will be print in the console/terminal
I do not like the behavior, at least I want capture the error log from server and print with prefix(maybe "error-received: {original-err}")
but I cannot figure out how to use errlog param, I write a file-like object, something like this:
it's not work, seems the function write is ignored at all
besides that, I also try to assign a file object to errlog, it could work, the file is write with error from server, but I cannot add any prefix to original err message. any help, thanks
The text was updated successfully, but these errors were encountered:
How to capture the stderr from server, I saw there is a params named:
errlog
, its default value issys.stderr
, that caused any stderr from server side will be print in the console/terminalI do not like the behavior, at least I want capture the error log from server and print with prefix(maybe "error-received: {original-err}")
but I cannot figure out how to use
errlog
param, I write a file-like object, something like this:it's not work, seems the function
write
is ignored at allbesides that, I also try to assign a
file
object toerrlog
, it could work, the file is write with error from server, but I cannot add any prefix to original err message. any help, thanksThe text was updated successfully, but these errors were encountered: