Skip to content

feat(logging): rotating log files - #5485

Merged
ReenigneArcher merged 2 commits into
masterfrom
feat/rotating-log-files
Aug 8, 2026
Merged

feat(logging): rotating log files#5485
ReenigneArcher merged 2 commits into
masterfrom
feat/rotating-log-files

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Aug 7, 2026

Copy link
Copy Markdown
Member

Description

PR adds rotating log files. Additionally, uses logging callback for QT tray on all platforms.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

See our AI usage policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 74 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sunshine-esm 862.46kB 74 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sunshine-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/logo-*.js 74 bytes 380.78kB 0.02%

Files in assets/logo-*.js:

  • ./src_assets/common/assets/web/public/assets/locale/en.json → Total Size: 42.48kB

@ReenigneArcher
ReenigneArcher force-pushed the feat/rotating-log-files branch from 1145014 to d76b9ef Compare August 8, 2026 00:18
@sonarqubecloud

sonarqubecloud Bot commented Aug 8, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.00000% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@49e5697). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/logging.cpp 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5485   +/-   ##
=========================================
  Coverage          ?   28.10%           
=========================================
  Files             ?      109           
  Lines             ?    24710           
  Branches          ?    10910           
=========================================
  Hits              ?     6944           
  Misses            ?    15394           
  Partials          ?     2372           
Flag Coverage Δ
Archlinux 0.00% <0.00%> (?)
FreeBSD-amd64 13.99% <50.00%> (?)
Homebrew-macos-14 22.55% <90.00%> (?)
Homebrew-macos-15 23.21% <90.00%> (?)
Homebrew-macos-26 23.34% <90.00%> (?)
Homebrew-ubuntu-24.04 14.01% <81.81%> (?)
Linux-AppImage 13.42% <81.81%> (?)
Windows-AMD64 17.42% <81.81%> (?)
Windows-ARM64 14.97% <50.00%> (?)
macOS-arm64 19.81% <50.00%> (?)
macOS-x86_64 20.53% <50.00%> (?)

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

Files with missing lines Coverage Δ
src/logging.h 59.70% <100.00%> (ø)
src/system_tray.cpp 80.08% <ø> (ø)
src/logging.cpp 75.16% <66.66%> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49e5697...d76b9ef. Read the comment docs.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Last Updated 2026-08-08 01:08:42 UTC
Source Run CI Run #4896
Commit d76b9ef3e1256fe9dcd927a29c85b86a73af45d9

Screenshot Comparison

PR #5485 screenshots vs screenshots baseline.

Matrix: AppImage

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-AMD64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-ARM64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-arm64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-x86_64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

@ReenigneArcher
ReenigneArcher merged commit 7df8c62 into master Aug 8, 2026
69 of 70 checks passed
@ReenigneArcher
ReenigneArcher deleted the feat/rotating-log-files branch August 8, 2026 01:12
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.

Sunshine: rolling log files Log is truncated at some initialization point, impossible to troubleshoot crashing

1 participant