From 22f3b895c13ab5940df18f4d9273934dfa15b658 Mon Sep 17 00:00:00 2001 From: Rob B Date: Fri, 27 Sep 2024 23:30:17 -0400 Subject: [PATCH] Add extra context to log names in zip to make manual reading easier --- backend/app/debug_info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/debug_info.go b/backend/app/debug_info.go index 2d88ea8b..5fd8da24 100644 --- a/backend/app/debug_info.go +++ b/backend/app/debug_info.go @@ -122,7 +122,7 @@ func addFactoryGameLogs(writer *zip.Writer) { func getLogNameForInstall(install *common.Installation) string { hash := sha256.Sum256([]byte(install.Path)) - return fmt.Sprintf("FactoryGame_%s.log", hex.EncodeToString(hash[:])[:8]) + return fmt.Sprintf("FactoryGame_%s_%s_%s_%s.log", install.Location, install.Branch, install.Type, hex.EncodeToString(hash[:])[:8]) } func addMetadata(writer *zip.Writer) error {