Verified Commit 6506b04a authored by les's avatar les
Browse files

hide secret settings from logs

parent 91ad375b
......@@ -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 },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment