forked from nixcn/nixcn-cms
Add database driver and config module
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package logger
|
||||
|
||||
import (
|
||||
"nixcn-cms/config"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@@ -9,8 +10,8 @@ import (
|
||||
)
|
||||
|
||||
func Init() {
|
||||
FileLogger := false
|
||||
DebugMode := true
|
||||
FileLogger := config.Get("server.file_logger").(bool)
|
||||
DebugMode := config.Get("server.debug_mode").(bool)
|
||||
|
||||
if FileLogger {
|
||||
gin.DisableConsoleColor()
|
||||
|
||||
Reference in New Issue
Block a user