mirror of
https://github.com/MythicC2Profiles/http
synced 2026-06-08 11:56:36 +00:00
removing color codes from debug output because it's hard to read
This commit is contained in:
@@ -22,10 +22,13 @@ import (
|
||||
)
|
||||
|
||||
func Initialize(configInstance instanceConfig) *gin.Engine {
|
||||
if mythicConfig.MythicConfig.DebugLevel == "info" || mythicConfig.MythicConfig.DebugLevel == "warning" {
|
||||
if mythicConfig.MythicConfig.DebugLevel == "warning" {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
} else {
|
||||
gin.SetMode(gin.DebugMode)
|
||||
}
|
||||
r := gin.New()
|
||||
gin.DisableConsoleColor()
|
||||
// Global middleware
|
||||
r.Use(InitializeGinLogger(configInstance))
|
||||
// Recovery middleware recovers from any panics and writes a 500 if there was one.
|
||||
|
||||
Reference in New Issue
Block a user