Skip to content
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

Update logging #1167

Merged
merged 4 commits into from
Apr 4, 2024
Merged

Update logging #1167

merged 4 commits into from
Apr 4, 2024

Conversation

erri120
Copy link
Member

@erri120 erri120 commented Apr 3, 2024

  • Improved logging messages containing more information
  • We're now using two logging files:
    • nexusmods.app.main for the main process only
    • nexusmods.app.slim for the "slim" process only
  • Updates the "bug" issue template to prompt the user to upload log files.

Having two logging files fixes the issue where both the main and slim process try to write to the same file. While we didn't have any corruptions of log files, we did have an issue where a slim process will move the current main log to an archive log while the main process would continue writing to the archive log. It made debugging and viewing logs difficult, this PR fixes that issue by clearly separating the two logs.

@erri120 erri120 requested review from halgari and a team April 3, 2024 10:23
@erri120 erri120 self-assigned this Apr 3, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 21.56863% with 80 lines in your changes are missing coverage. Please review.

Project coverage is 52.50%. Comparing base (51fb1bd) to head (96744d6).
Report is 9 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1167      +/-   ##
==========================================
- Coverage   53.10%   52.50%   -0.60%     
==========================================
  Files         674      674              
  Lines       23120    23185      +65     
  Branches     1762     1770       +8     
==========================================
- Hits        12278    12174     -104     
- Misses      10441    10607     +166     
- Partials      401      404       +3     
Flag Coverage Δ
Linux 52.42% <20.58%> (-0.07%) ⬇️
Windows ?
clean_environment_tests 52.50% <21.56%> (-0.60%) ⬇️
macOS 51.90% <21.56%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/NexusMods.App/AppConfig.cs 64.89% <52.38%> (-7.42%) ⬇️
src/NexusMods.App/Program.cs 0.00% <0.00%> (ø)

... and 30 files with indirect coverage changes

Copy link
Contributor

@Al12rs Al12rs left a comment

Choose a reason for hiding this comment

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

Looks ok if there are no objections to splitting the log file from others

@halgari halgari merged commit ef9839a into Nexus-Mods:main Apr 4, 2024
6 checks passed
Copy link
Collaborator

@halgari halgari left a comment

Choose a reason for hiding this comment

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

Looks good to me, good solution to the problem

@erri120 erri120 deleted the feat/misc branch April 4, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants