diff --git a/core/Command/Config/App/SetConfig.php b/core/Command/Config/App/SetConfig.php
index 0484c2da84693..d11e7e6732e31 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'
)