mirror of
https://github.com/gogs/gogs.git
synced 2026-03-01 09:40:55 +01:00
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
16 lines
245 B
Go
16 lines
245 B
Go
package dbutil
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
// Logger is a wrapper of io.Writer for the GORM's logger.Writer.
|
|
type Logger struct {
|
|
io.Writer
|
|
}
|
|
|
|
func (l *Logger) Printf(format string, args ...any) {
|
|
_, _ = fmt.Fprintf(l.Writer, format, args...)
|
|
}
|