with better closer

This commit is contained in:
2022-09-10 01:39:36 +02:00
parent 6169d05b3e
commit 4214259591
3 changed files with 46 additions and 8 deletions

View File

@@ -7,9 +7,9 @@ type DefaultLogger struct{}
var _ Logger = &DefaultLogger{}
func (dl *DefaultLogger) Info(msg string, args ...any) {
fmt.Printf(msg, args...)
fmt.Println(fmt.Sprintf(msg, args...))
}
func (dl *DefaultLogger) Error(msg string, args ...any) {
fmt.Printf(msg, args...)
fmt.Println(fmt.Sprintf(msg, args...))
}