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
Current logger package needs to be initialised before using. This increase some complexity when writing unit test.
Not only every test case need to initialize logger, but also when background task is running while main test problem is terminating and finalize logger, it might cause unexpected problem of logger not initialised.
If logger can be default send to stdout, then it provides two benefits:
no need to setup logger for ever test
when ever unit test error, with go test -v shows details message of process, facilitate easier debugging
The text was updated successfully, but these errors were encountered:
Current
logger
package needs to be initialised before using. This increase some complexity when writing unit test.Not only every test case need to initialize
logger
, but also when background task is running while main test problem is terminating and finalizelogger
, it might cause unexpected problem oflogger not initialised
.If
logger
can be default send to stdout, then it provides two benefits:logger
for ever testgo test -v
shows details message of process, facilitate easier debuggingThe text was updated successfully, but these errors were encountered: