feat: add logs for http handlers
This commit is contained in:
@@ -23,7 +23,7 @@ func (fn GinLogWriteFunc) Write(data []byte) (int, error) {
|
||||
// NewGinLogrusWrite logrus writer for gin
|
||||
func NewGinLogrusWrite() io.Writer {
|
||||
return GinLogWriteFunc(func(data []byte) (int, error) {
|
||||
log.Debugf("%s", data)
|
||||
log.Info("%s", data)
|
||||
return 0, nil
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user