Closed equinoxmatt closed 2 years ago
Sorry, I messed up the previous PR #63
I have made the fix suggested by @egonelbre - it now creates a default node.Repo struct value if error occurs.
I will re-add the repo code here for testing:
package main import ( "gorm.io/gorm/logger" ) type Writer struct { } func (w Writer) Printf(format string, v ...interface{}) { } // main function func main() { _ = logger.New( Writer{}, // io writer logger.Config{}, ) }
Thank you :)
Sorry, I messed up the previous PR #63
I have made the fix suggested by @egonelbre - it now creates a default node.Repo struct value if error occurs.
I will re-add the repo code here for testing: