Explorar el Código

fix: logs (#14)

Co-authored-by: jeessy2 <[email protected]>
jeessy2 hace 3 años
padre
commit
a2c40044b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      web/logs.go

+ 1 - 1
web/logs.go

@@ -26,7 +26,7 @@ var mlogs = &MemoryLogs{MaxNum: 50}
 
 // 初始化日志
 func init() {
-	log.SetOutput(io.MultiWriter(os.Stdout, mlogs))
+	log.SetOutput(io.MultiWriter(mlogs, os.Stdout))
 	// log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
 }