Skip to content

Commit

Permalink
Fix duplicate display of pod id in log tags
Browse files Browse the repository at this point in the history
  • Loading branch information
KnVerey committed Jun 1, 2017
1 parent 2ad8320 commit 95355b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/kubernetes-deploy/kubernetes_resource/pod.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ def display_logs
return
end

container_logs.each do |container_name, logs|
container_logs.each do |container_identifier, logs|
if logs.blank?
@logger.warn("No logs found for #{id}/container_name")
@logger.warn("No logs found for #{container_identifier}")
else
@logger.blank_line
@logger.info("Logs from #{id}/#{container_name}:")
@logger.info("Logs from #{container_identifier}:")
logs.split("\n").each do |line|
@logger.info("[#{id}/#{container_name}]\t#{line}")
@logger.info("[#{container_identifier}]\t#{line}")
end
@logger.blank_line
end
Expand Down

0 comments on commit 95355b3

Please sign in to comment.