Skip to content

Commit

Permalink
add update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Jan 20, 2025
1 parent c7a6c1d commit 37a6839
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modupdate/modUpdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ func UpdateMods(doReport bool) {
if err != nil {
buf := fmt.Sprintf("Error while attempting to update game mods: %v", err.Error())
cwlog.DoLogCW(buf)
return
}

lines := strings.Split(out, "\n")
buf := ""
for _, line := range lines {
if strings.Contains(line, "Download") {
buf = buf + line + "\n"
cwlog.DoLogCW(line)
}
}
if buf != "" {
Expand Down

0 comments on commit 37a6839

Please sign in to comment.