Improve logging (#2)

Reviewed-on: #2
This commit is contained in:
2025-07-24 15:30:33 +00:00
parent 71f044e6e0
commit bc80ca2c9c
22 changed files with 411 additions and 307 deletions

View File

@@ -1,7 +1,7 @@
package ui
import (
"epochsilicon/pkg/debug"
"epochsilicon/pkg/log"
"git.burkey.co/eburk/epochcli/pkg/epoch"
"os"
"path/filepath"
@@ -108,13 +108,13 @@ func updateEpochStatus() {
// Check for Epoch-specific files
epochPatchesApplied := false
stats, err := epoch.Update(paths.EpochPath, false, true, true)
if err != nil {
debug.Printf("Failed to get download Epoch patches: %v", err)
}
if stats.Outdated == 0 {
debug.Println("Nothing is outdated")
epochPatchesApplied = true
stats := epoch.Update(paths.EpochPath, false, true, true)
if stats.Error != nil {
log.Error(stats.Error.Error())
} else {
if stats.Outdated == 0 {
epochPatchesApplied = true
}
}
// Check if patched files have the correct size (matches bundled versions)