Skip to content

Commit

Permalink
Add extra context to log names in zip to make manual reading easier
Browse files Browse the repository at this point in the history
  • Loading branch information
budak7273 committed Sep 28, 2024
1 parent 6dc0c08 commit 22f3b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/debug_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 22f3b89

Please sign in to comment.