disabled file logging

master
Alex 2022-02-01 07:28:26 +01:00
parent 6b6f2f2e84
commit 00fb629921
1 changed files with 2 additions and 4 deletions

View File

@ -3,8 +3,6 @@ package logger
//import log "github.com/sirupsen/logrus"
import (
"os"
"github.com/sirupsen/logrus"
)
@ -17,7 +15,7 @@ var WebMobile *logrus.Entry
var Minecraft *logrus.Entry
func Init() {
log.Out = os.Stdout
/*log.Out = os.Stdout
file, err := os.OpenFile("logrus.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
@ -25,7 +23,7 @@ func Init() {
log.Out = file
} else {
log.Info("failed to log to file")
}
}*/
Mongo = log.WithFields(logrus.Fields{
"t": "mongo",