Skip to content

Commit

Permalink
Restore IsWindows variable assignment (#6722) (#6790)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Scattaglia <scattaglia.nicola.work@gmail.com>
  • Loading branch information
scottaglia authored and lafriks committed Apr 28, 2019
1 parent d29d97d commit cde6079
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"os/exec"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -407,6 +408,7 @@ func getWorkPath(appPath string) string {
}

func init() {
IsWindows = runtime.GOOS == "windows"
// We can rely on log.CanColorStdout being set properly because modules/log/console_windows.go comes before modules/setting/setting.go lexicographically
log.NewLogger(0, "console", "console", fmt.Sprintf(`{"level": "trace", "colorize": %t, "stacktraceLevel": "none"}`, log.CanColorStdout))

Expand Down

0 comments on commit cde6079

Please sign in to comment.