1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-02 09:17:19 -04:00

Merge pull request #981 from gucio321/hotfix

hotfix for #971
This commit is contained in:
Tim Sarbin 2020-12-16 09:16:41 -05:00 committed by GitHub
commit 22ef2c3a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -124,7 +124,7 @@ func Create(gitBranch, gitCommit string) *App {
app.Logger = d2util.NewLogger()
app.Logger.SetPrefix(appLoggerPrefix)
app.Logger.SetLevel(d2util.LogLevelNone)
app.Logger.SetLevel(d2util.LogLevelDefault)
return app
}
@ -320,9 +320,6 @@ func (a *App) Run() error {
}
logLevel := *a.Options.LogLevel
if logLevel == d2util.LogLevelUnspecified {
logLevel = a.config.LogLevel
}
a.asset.SetLogLevel(logLevel)

View File

@ -352,7 +352,7 @@ func (t *terminal) OutputRaw(text string, category d2enum.TermCategory) {
for _, line := range lines {
// removes color token (this token ends with [0m )
l := strings.Split(line, "[0m ")
l := strings.Split(line, "\033[0m")
line = l[len(l)-1]
t.outputHistory = append(t.outputHistory, termHistoryEntry{line, category})