Skip to content

Commit

Permalink
Hide credentials in system.backup_log base_backup_name column
Browse files Browse the repository at this point in the history
  • Loading branch information
danipozo committed Jan 5, 2024
1 parent 97481bf commit a012377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Backups/BackupsWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ OperationID BackupsWorker::startMakingBackup(const ASTPtr & query, const Context
String backup_name_for_logging = backup_info.toStringForLogging();
String base_backup_name;
if (backup_settings.base_backup_info)
base_backup_name = backup_settings.base_backup_info->toString();
base_backup_name = backup_settings.base_backup_info->toStringForLogging();

try
{
Expand Down Expand Up @@ -750,7 +750,7 @@ OperationID BackupsWorker::startRestoring(const ASTPtr & query, ContextMutablePt
String backup_name_for_logging = backup_info.toStringForLogging();
String base_backup_name;
if (restore_settings.base_backup_info)
base_backup_name = restore_settings.base_backup_info->toString();
base_backup_name = restore_settings.base_backup_info->toStringForLogging();

addInfo(restore_id, backup_name_for_logging, base_backup_name, restore_settings.internal, BackupStatus::RESTORING);

Expand Down

0 comments on commit a012377

Please sign in to comment.