Skip to content

Commit

Permalink
system: adjust log levels in google drive backup; closes opnsense#7427
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed May 2, 2024
1 parent f7999a7 commit eea9c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/opnsense/mvc/app/library/OPNsense/Backup/GDrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function backup()
}
}
if (!is_null($target_filename)) {
syslog(LOG_ERR, "backup configuration as " . $target_filename);
syslog(LOG_NOTICE, "backup configuration as " . $target_filename);
try {
$configfiles[$target_filename] = $client->upload(
(string)$config->system->remotebackup->GDriveFolderID,
Expand All @@ -269,7 +269,7 @@ public function backup()
$fcount = 0;
foreach ($configfiles as $filename => $file) {
if ($fcount >= (string)$config->system->remotebackup->GDriveBackupCount) {
syslog(LOG_ERR, "remove " . $filename . " from Google Drive");
syslog(LOG_NOTICE, "remove " . $filename . " from Google Drive");
try {
$client->delete($file);
} catch (Google_Service_Exception $e) {
Expand Down

0 comments on commit eea9c5c

Please sign in to comment.