mirror of
https://github.com/pushbits/server.git
synced 2025-07-29 22:37:26 +02:00
Add misspell, gocritic, and revive
This commit is contained in:
parent
5e640800fe
commit
2c20e42a21
30 changed files with 79 additions and 43 deletions
|
@ -1,5 +1,6 @@
|
|||
// Source: https://github.com/toorop/gin-logrus
|
||||
|
||||
// Package log provides a connector between gin and logrus.
|
||||
package log
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package log provides functionality to configure the logger.
|
||||
package log
|
||||
|
||||
import (
|
||||
|
@ -6,6 +7,7 @@ import (
|
|||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// L is the global logger instance for PushBits.
|
||||
var L *log.Logger
|
||||
|
||||
func init() {
|
||||
|
@ -17,6 +19,7 @@ func init() {
|
|||
})
|
||||
}
|
||||
|
||||
// SetDebug sets the logger to output debug information.
|
||||
func SetDebug() {
|
||||
L.SetLevel(log.DebugLevel)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue