Skip to content

feat: Mac UI app to match global log level - #2139

Draft
adrien-coye wants to merge 2 commits into
protected/macOSV4from
fix/ui-match-global-log-level
Draft

adrien-coye wants to merge 2 commits into
protected/macOSV4from
fix/ui-match-global-log-level

Conversation

@adrien-coye

Copy link
Copy Markdown
Collaborator

To be merged for the release to public version

@adrien-coye
adrien-coye changed the base branch from develop to protected/macOSV4 August 12, 2026 07:58
# Conflicts:
#	src/gui4/macOS/kDriveCore/ServerBridge/Cache/SettingsCache.swift
#	src/gui4/macOS/kDriveCore/Utils/UserDefaults+Extension.swift

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Synchronizes macOS file logging with the server-provided log level.

Changes:

  • Maps server log levels to Swift logging levels.
  • Persists and dynamically applies the minimum file log level.
  • Adds mapping, persistence, and runtime filtering tests.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
LogServiceTests.swift Tests runtime filtering changes.
LogLevelKDCMappingTests.swift Tests server-level mapping.
SettingsCacheTests.swift Tests level persistence.
UserDefaults+Extension.swift Stores the last known level.
SettingsCache.swift Applies server logging settings.
LogService.swift Supports runtime threshold updates.
LogLevel+KDC.swift Maps KDC log levels.
project.pbxproj Registers the new test file.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +68 to +71
let fileLogLevel = LogLevel(kdcLogLevel: settings.logLevel)
UserDefaults.standard.lastKnownFileLogLevel = fileLogLevel
@InjectService var logService: LogService
logService.setMinimumFileLevel(fileLogLevel)
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants