Skip to content

Commit

Permalink
Change logging for sparkle update to qCInfo
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and mgallien committed Dec 5, 2023
1 parent ff93f3d commit de4645f
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit de4645f

Please sign in to comment.