Skip to content

Commit

Permalink
config: improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gekigek99 committed Mar 16, 2023
1 parent 34b8ba2 commit bb85286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,15 @@ func (c *Configuration) loadRuntime(confdef *Configuration) *errco.MshLog {
errco.NewLogln(errco.TYPE_INF, errco.LVL_3, errco.ERROR_NIL, "msh connection proxy setup: %10s:%5d --> %10s:%5d", MshHost, MshPort, ServHost, ServPort)

// check if queries are enabled by config, start arguments or ms config
queriesStatus := "queries disabled"
queriesStatus := "query handling disabled"
if c.Msh.EnableQuery {
queriesStatus = "queries enabled by msh config or start arguments"
queriesStatus = "query handling enabled by msh config or start arguments"
} else if msConfigQueryEnabled, logMsh := c.ParsePropertiesBool("enable-query"); logMsh != nil {
queriesStatus = "queries disabled by error"
queriesStatus = "query handling disabled by error"
c.Msh.EnableQuery = false
logMsh.Log(true)
} else if msConfigQueryEnabled {
queriesStatus = "queries enabled by minecraft server config"
queriesStatus = "query handling enabled by minecraft server config"
c.Msh.EnableQuery = true
}

Expand Down

0 comments on commit bb85286

Please sign in to comment.