From 42b3b4912b41f46c9e849037428c2cb8d00c3391 Mon Sep 17 00:00:00 2001 From: Matthew Baggett <matthew@baggett.me> Date: Tue, 25 Jun 2024 15:27:42 +0200 Subject: [PATCH] Debuggin' --- src/Bouncer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Bouncer.php b/src/Bouncer.php index fdf068c..0a21e94 100644 --- a/src/Bouncer.php +++ b/src/Bouncer.php @@ -211,6 +211,7 @@ class Bouncer } // If BOUNCER_IGNORE is set, skip this service. if (isset($envs['BOUNCER_IGNORE'])) { + $this->logger->warning('Container {container_name} has BOUNCER_IGNORE set, skipping.', ['emoji' => Emoji::warning() . ' Bouncer.php', 'container_name' => $container['Name']]); continue; } @@ -294,13 +295,16 @@ class Bouncer $envs[$envKey] = $envVal; } } + \Kint::dump($service['Spec']['TaskTemplate']['ContainerSpec']['Env']); ksort($envs); // If there are no BOUNCER_* environment variables, skip this service. if (count($envs) == 0) { + $this->logger->debug('Service {service_name} has no BOUNCER_* environment variables, skipping.', ['emoji' => Emoji::warning() . ' Bouncer.php', 'service_name' => $service['Spec']['Name']]); continue; } // if BOUNCER_IGNORE is set, skip this service. if (isset($envs['BOUNCER_IGNORE'])) { + $this->logger->warning('Service {service_name} has BOUNCER_IGNORE set, skipping.', ['emoji' => Emoji::warning() . ' Bouncer.php', 'service_name' => $service['Spec']['Name']]); continue; }