A Windows application compiles fine and works if there are no problems. But for example, turn off the SQL server, and the application starts to pour into the console:
goroutine 5 [chan receive]:
database / sql. (* DB) .connectionOpener (0xc0820500b0) C: /Go/src/database/sql/sql.go: 727 + 0x4c
created by database / sql.Open C: /Go/src/database/sql/sql.go: 493 + 0x346
Although I use logrus and write all the errors to the log file, but for some reason this is exactly where nothing gets. Perhaps somehow it is to intercept and suppress the output to the screen?
logger := logrus.StandardLogger(), and then laterloggerpass toecho.SetLogger()- Pavel Kazhevets