hide secret settings from logs

This commit is contained in:
les 2021-05-20 11:19:26 +02:00
parent 91ad375bed
commit 6506b04a0c
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -93,7 +93,7 @@ const settingsController = {
},
async set (key, value, is_secret = false) {
log.info(`SET ${key} ${value}`)
log.info(`SET ${key} ${is_secret ? '*****' : value}`)
try {
const [setting, created] = await Setting.findOrCreate({
where: { key },