Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
6506b04a
Verified
Commit
6506b04a
authored
May 20, 2021
by
les
Browse files
hide secret settings from logs
parent
91ad375b
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/api/controller/settings.js
View file @
6506b04a
...
...
@@ -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
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment