Skip to content

Commit fa3564f

Browse files
committed
Reduce logging level for secrets so that unless you are specifically troubleshooting you wont see container configurations during a deploy.
1 parent 1dacf22 commit fa3564f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/centurion/deploy.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ def start_new_container(server, service, restart_policy)
109109
info "Starting new container #{container['Id'][0..7]}"
110110
server.start_container(container['Id'], host_config)
111111

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

117118
container

0 commit comments

Comments
 (0)