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

Change logging for sparkle update to qCInfo #6161

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/gui/updater/sparkleupdater_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ - (instancetype)initWithOwner:(OCC::SparkleUpdater::SparkleInterface *)owner
- (BOOL)backgroundUpdateChecksAllowed
{
BOOL allowUpdateCheck = OCC::ConfigFile().skipUpdateCheck() ? NO : YES;
qCDebug(OCC::lcUpdater) << "Updater may check for updates:" << (allowUpdateCheck ? "YES" : "NO");
qCInfo(OCC::lcUpdater) << "Updater may check for updates:" << (allowUpdateCheck ? "YES" : "NO");
return allowUpdateCheck;
}

Expand All @@ -95,7 +95,7 @@ - (BOOL)updaterShouldShowUpdateAlertForScheduledUpdate:(SUUpdater *)updater forI

- (void)notifyStateChange:(const OCC::SparkleUpdater::State)state displayStatus:(const QString&)statusString
{
qCDebug(OCC::lcUpdater) << statusString;
qCInfo(OCC::lcUpdater) << statusString;
_owner->statusChanged(state, statusString);
}

Expand Down Expand Up @@ -293,7 +293,7 @@ - (void)userDidCancelDownload:(SUUpdater *)updater

void SparkleUpdater::checkForUpdate()
{
qCDebug(OCC::lcUpdater) << "Checking for updates.";
qCInfo(OCC::lcUpdater) << "Checking for updates.";
if (autoUpdaterAllowed()) {
[_interface->updater checkForUpdates: NSApp];
}
Expand All @@ -302,10 +302,10 @@ - (void)userDidCancelDownload:(SUUpdater *)updater
void SparkleUpdater::backgroundCheckForUpdate()
{
if (autoUpdaterAllowed() && !ConfigFile().skipUpdateCheck()) {
qCDebug(OCC::lcUpdater) << "launching background check";
qCInfo(OCC::lcUpdater) << "launching background check";
[_interface->updater checkForUpdatesInBackground];
} else {
qCDebug(OCC::lcUpdater) << "not launching background check, auto updater not allowed or update check skipped in config";
qCInfo(OCC::lcUpdater) << "not launching background check, auto updater not allowed or update check skipped in config";
}
}

Expand Down
Loading