Skip to content

Commit

Permalink
Merge pull request #190 from MidnightsFX/no_prod_secrets
Browse files Browse the repository at this point in the history
Reduce logging level for secrets
  • Loading branch information
intjonathan authored Dec 5, 2018
2 parents 1dacf22 + eb178c2 commit 38ef3bf
Showing 1 changed file with 4 additions and 2 deletions.
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"

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

0 comments on commit 38ef3bf

Please sign in to comment.