more logs

This commit is contained in:
2025-07-24 07:23:29 -07:00
parent 67daf7027d
commit caf2004388
7 changed files with 11 additions and 10 deletions

View File

@@ -16,10 +16,9 @@ import (
"fyne.io/fyne/v2/dialog"
)
var EnableMetalHud = false // Default to disabled
var CustomEnvVars = "" // Custom environment variables
var EnableVanillaTweaks = false // Default to disabled
var AutoDeleteWdb = false // Default to disabled
var EnableMetalHud = false // Default to disabled
var CustomEnvVars = "" // Custom environment variables
var AutoDeleteWdb = false // Default to disabled
// Terminal state management
var (

View File

@@ -16,7 +16,7 @@ var (
func SetupLogging() {
logFilePointer = nil
ToConsole(zerolog.InfoLevel)
ToConsole(zerolog.DebugLevel)
}
func Close() {
@@ -33,7 +33,8 @@ func ToFile(level zerolog.Level) {
logger.Error().Msg(err.Error())
return
}
logger = zerolog.New(logFilePointer).With().Timestamp().Logger().Level(level)
multi := zerolog.MultiLevelWriter(logFilePointer, os.Stdout)
logger = zerolog.New(multi).With().Timestamp().Logger().Level(level)
}
func ToConsole(level zerolog.Level) {

View File

@@ -204,8 +204,8 @@ func PatchEpoch(myWindow fyne.Window, updateAllStatuses func()) {
// TODO: Change from dialog to pulsing animation
dialog.ShowInformation("Downloading patches", "Downloading patches for Project Epoch, this will take some time. Please wait until the status changes to \"Patched\"", myWindow)
paths.DownloadingPatches = true
log.Debug("Attempting to download Epoch patches...")
go func() {
log.Debug("Attempting to download patches...")
stats := epoch.Update(paths.EpochPath, true, true, false)
if stats.Error != nil {
errMsg := fmt.Sprintf("failed to update Epoch files: %v", stats.Error)

View File

@@ -113,7 +113,6 @@ func updateEpochStatus() {
log.Error(stats.Error.Error())
} else {
if stats.Outdated == 0 {
log.Debug("Everything is up-to-date!")
epochPatchesApplied = true
}
}