Skip to content

Commit

Permalink
house cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
ohpe committed Apr 16, 2024
1 parent 4e32c2e commit b44add9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
4 changes: 1 addition & 3 deletions log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ func Init(opt core.Options, isLogToFile bool, logFilePath string) {

if !tui.Effects() {
NoEffects = true
if *opt.NoColors {
fmt.Printf("\n\nWARNING: Terminal colors have been disabled, view will be very limited.\n\n")
} else {
if !*opt.NoColors {
fmt.Printf("\n\nWARNING: This terminal does not support colors, view will be very limited.\n\n")
}
}
Expand Down
10 changes: 0 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"fmt"
"os"

"github.com/evilsocket/islazy/tui"

"github.com/muraenateam/muraena/core/proxy"
"github.com/muraenateam/muraena/log"
"github.com/muraenateam/muraena/module"
Expand All @@ -19,14 +17,6 @@ func main() {
os.Exit(1)
}

if !tui.Effects() {
if *sess.Options.NoColors {
fmt.Printf("\n\nWARNING: Terminal colors have been disabled, view will be very limited.\n\n")
} else {
fmt.Printf("\n\nWARNING: This terminal does not support colors, view will be very limited.\n\n")
}
}

// Init Log
log.Init(sess.Options, sess.Config.Log.Enabled, sess.Config.Log.FilePath)

Expand Down

0 comments on commit b44add9

Please sign in to comment.