Skip to content

Commit

Permalink
fix main_no_gui.go for nogui tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Nov 10, 2024
1 parent ae4b654 commit cc10908
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_no_gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/ilius/ayandict/v2/pkg/config"
"github.com/ilius/ayandict/v2/pkg/dictmgr"
"github.com/ilius/ayandict/v2/pkg/logging"
"github.com/ilius/ayandict/v2/pkg/server"
)

Expand All @@ -28,7 +29,7 @@ func main() {
}

noColor := os.Getenv("NO_COLOLR") != ""
setupLogger(noColor, defaultLevel)
logging.SetupLogger(noColor, logging.DefaultLevel)

if *createConfigFlag {
err := config.EnsureExists(conf)
Expand Down

0 comments on commit cc10908

Please sign in to comment.