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
I made test application in EPashkin/hslogger_SDL_test bad branch
Problem can be fixed on application side if call removeAllHandlers before any log action (ex. in start setupLogger).
Source of problem is very strange value of stderr. Don't found way detect it, stderr still opened and writable. Simply hPutChar stderr 'g' will also fail.
P.S. Failing handler IMHO created in System.Log.Logger.logTree.
P.P.S. When application started from console (cabal run) it works fine even on WARNING,
but hPutChar stderr 'g' still failing. (Sorry, was wrong. Error still showing.)
The text was updated successfully, but these errors were encountered:
Error occurs when attempting to log anything in SDL application
I made test application in EPashkin/hslogger_SDL_test bad branch
Problem can be fixed on application side if call
removeAllHandlers
before any log action (ex. in startsetupLogger
).Source of problem is very strange value of
stderr
. Don't found way detect it,stderr
still opened and writable. SimplyhPutChar stderr 'g'
will also fail.P.S. Failing handler IMHO created in
System.Log.Logger.logTree
.P.P.S.
When application started from console ((Sorry, was wrong. Error still showing.)cabal run
) it works fine even on WARNING,but
hPutChar stderr 'g'
still failing.The text was updated successfully, but these errors were encountered: