1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

Restore IsWindows variable assignment (#6722) (#6790)

Signed-off-by: Nicola Scattaglia <scattaglia.nicola.work@gmail.com>
This commit is contained in:
Nicola Scattaglia 2019-04-28 21:48:46 +02:00 committed by Lauris BH
parent d29d97d91c
commit cde6079879

View file

@ -16,6 +16,7 @@ import (
"os/exec"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"
"time"
@ -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))