Skip to content

[Logs] Add GOGdl and Legendary verbose log for any command output for better troubleshooting #2119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

arielj
Copy link
Collaborator

@arielj arielj commented Dec 1, 2022

This PR adds new log files to store all the output of Legendary and GOGdl.

The new files are stored next to heroic's general logs but the names are legendary-....log and gogdl-.....log instead of heroic-....log and the same logic to delete old logs still applies to these new ones.

There's no frontend view of these logs but they can be accessed using the same Show log file in folder button for the general logs.

I also fixed an issue where logs were being deleted when the month changed instead of when they were a month old (the 1st of each month it was we were deleting all files from last month).


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@arielj arielj requested review from a team, flavioislima, CommandMC, Nocccer, imLinguin and redromnon and removed request for a team December 1, 2022 23:56
@@ -737,6 +737,13 @@ async function callRunner(
rej('Process terminated with signal ' + signal)
}

if (options?.runnerStdoutLog) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stores verbose logs if an option is provided

.replace('.log', '')
.replaceAll('_', ':')
const logDate = new Date(dateString)
if (
logDate.getFullYear() < date.getFullYear() ||
logDate.getMonth() < date.getMonth()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was deleting files if they were from last month instead of a month old

@arielj arielj requested a review from CommandMC December 2, 2022 02:32
@arielj
Copy link
Collaborator Author

arielj commented Dec 2, 2022

thanks @CommandMC this is ready for another review

@arielj arielj merged commit 5c20525 into main Dec 2, 2022
@arielj arielj deleted the logs/add-verbose-gogdl-legendary-logs branch December 2, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants