Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce logging level for secrets #190

Merged
merged 3 commits into from
Dec 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/centurion/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ def start_new_container(server, service, restart_policy)

info "Starting new container #{container['Id'][0..7]}"
server.start_container(container['Id'], host_config)
info "Started #{container['Id'][0..7]} successfully"
intjonathan marked this conversation as resolved.
Show resolved Hide resolved

info "Inspecting new container #{container['Id'][0..7]}:"
# since this likely contains secrets we don't want to be always printing configurations
debug "Inspecting new container #{container['Id'][0..7]}:"
(server.inspect_container(container['Id']) || {}).each_pair do |key,value|
info "\t#{key} => #{value.inspect}"
debug "\t#{key} => #{value.inspect}"
end

container
Expand Down