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
The naming of the expected logger interface for gorm infers that the parameters are to be given to a Print like method however the New method which is the standard way to create a Logger takes a Writer which defines Printf not Print so the expectation is Printf(format string), a ...any) not Print(a ...any)
The impact of that is errors thrown from gorm cause corrupt output:
msg="failed to initialize database, got error %v" !BADKEY="failed to connect to `host=localhost user=test_user database=test_database`: failed SASL auth (FATAL: password authentication failed for user \"test_user\" (SQLSTATE 28P01))"`
The text was updated successfully, but these errors were encountered:
The naming of the expected logger interface for gorm infers that the parameters are to be given to a
Print
like method however the New method which is the standard way to create aLogger
takes a Writer which definesPrintf
notPrint
so the expectation isPrintf(format string), a ...any)
notPrint(a ...any)
The impact of that is errors thrown from gorm cause corrupt output:
The text was updated successfully, but these errors were encountered: