diff --git a/core/Command/Config/App/SetConfig.php b/core/Command/Config/App/SetConfig.php
index b1d1632ff1a74..e983d32d97e13 100644
--- a/core/Command/Config/App/SetConfig.php
+++ b/core/Command/Config/App/SetConfig.php
@@ -217,7 +217,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
"Config value '%s' for app '%s' is now set to '%s', stored as %s in %s",
$configName,
$appName,
- $current['value'],
+ $current['sensitive'] ? '' : $current['value'],
$current['typeString'],
$current['lazy'] ? 'lazy cache' : 'fast cache'
)