Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sanG-github committed Jan 26, 2024
1 parent 5fa8a99 commit 182eef7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .template/spec/support/serverspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ module ServerSpecHelpers
def self.test_container
container_id = `docker ps -qf "name=#{ENV.fetch('APP_NAME')}_test"`

logger = Logger.new(STDOUT)

logger = Logger.new($stdout)
logger.level = Logger::WARN

Docker::Container.all(:all => true).each do |container|
logger.warn "Container: #{container.id} #{container.info['Names']}"
end

logger.warn "Container name: #{ENV.fetch('APP_NAME')}_test"
logger.warn "Container ID: #{container_id}"
logger.warn "Container integer ID: #{container_id.strip.to_i}"
Expand Down

0 comments on commit 182eef7

Please sign in to comment.