Change some message outputs.
This commit is contained in:
parent
4b1a0e54c7
commit
53fcb004c9
3 changed files with 5 additions and 4 deletions
|
|
@ -400,7 +400,7 @@ class Bouncer
|
||||||
|
|
||||||
case 'BOUNCER_HOST_OVERRIDE':
|
case 'BOUNCER_HOST_OVERRIDE':
|
||||||
$bouncerTarget->setHostOverride($envVal);
|
$bouncerTarget->setHostOverride($envVal);
|
||||||
$this->logger->warning('{label}: Host reported to container overridden and set to {host_override}.', ['emoji' => Emoji::hikingBoot() . ' ', 'label' => $bouncerTarget->getLabel(), 'host_override' => $bouncerTarget->getHostOverride()]);
|
$this->logger->warning('{label}: Host reported to container overridden and set to {host_override}.', ['emoji' => Emoji::hikingBoot(), 'label' => $bouncerTarget->getLabel(), 'host_override' => $bouncerTarget->getHostOverride()]);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -781,7 +781,7 @@ class Bouncer
|
||||||
$this->logger->info('Created {label}', $context + ['emoji' => Emoji::pencil() . ' ']);
|
$this->logger->info('Created {label}', $context + ['emoji' => Emoji::pencil() . ' ']);
|
||||||
$this->logger->debug(' -> {config_dir}/{file}', $context + ['emoji' => Emoji::pencil() . ' ']);
|
$this->logger->debug(' -> {config_dir}/{file}', $context + ['emoji' => Emoji::pencil() . ' ']);
|
||||||
$this->logger->debug(' -> {domain}', $context + ['emoji' => Emoji::pencil() . ' ']);
|
$this->logger->debug(' -> {domain}', $context + ['emoji' => Emoji::pencil() . ' ']);
|
||||||
$this->logger->critical('{label} cert type is {cert_type}', $context + ['emoji' => Emoji::catFace() . ' ', 'cert_type' => $target->getTypeCertInUse()->name]);
|
$this->logger->critical('{label} cert type is {cert_type}', $context + ['emoji' => Emoji::catFace(), 'cert_type' => $target->getTypeCertInUse()->name]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->logger->info('More than {num_max} Nginx configs generated.. Too many to show them all!', ['emoji' => Emoji::pencil() . ' ', 'num_max' => $this->getMaximumNginxConfigCreationNotices()]);
|
$this->logger->info('More than {num_max} Nginx configs generated.. Too many to show them all!', ['emoji' => Emoji::pencil() . ' ', 'num_max' => $this->getMaximumNginxConfigCreationNotices()]);
|
||||||
|
|
|
||||||
|
|
@ -442,12 +442,12 @@ class Target
|
||||||
// Is it a Hostname that resolves?
|
// Is it a Hostname that resolves?
|
||||||
$resolved = gethostbyname($this->getEndpointHostnameOrIp());
|
$resolved = gethostbyname($this->getEndpointHostnameOrIp());
|
||||||
if (filter_var($resolved, FILTER_VALIDATE_IP)) {
|
if (filter_var($resolved, FILTER_VALIDATE_IP)) {
|
||||||
// $this->logger->debug(sprintf('%s isEndpointValid: %s is a hostname that resolves to a normal IP %s', Emoji::magnifyingGlassTiltedRight(), $this->getEndpointHostnameOrIp(), $resolved));
|
// $this->logger->critical(sprintf('%s isEndpointValid: %s is a hostname that resolves to a normal IP %s', Emoji::magnifyingGlassTiltedRight(), $this->getEndpointHostnameOrIp(), $resolved));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->logger->warning('isEndpointValid: {endpoint} is a hostname that does not resolve', ['emoji' => Emoji::magnifyingGlassTiltedRight(), 'endpoint' => $this->getEndpointHostnameOrIp()]);
|
$this->logger->critical('isEndpointValid: {endpoint} is a hostname that does not resolve', ['emoji' => Emoji::magnifyingGlassTiltedRight(), 'endpoint' => $this->getEndpointHostnameOrIp()]);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ RUN adduser mysql && \
|
||||||
apt-get -y install --no-install-recommends \
|
apt-get -y install --no-install-recommends \
|
||||||
wget \
|
wget \
|
||||||
mysql-client \
|
mysql-client \
|
||||||
|
socat \
|
||||||
&& \
|
&& \
|
||||||
wget -q https://downloads.mysql.com/archives/get/p/21/file/$MYSQL_PROXY_TAR_NAME.tar.gz && \
|
wget -q https://downloads.mysql.com/archives/get/p/21/file/$MYSQL_PROXY_TAR_NAME.tar.gz && \
|
||||||
tar -xzvf $MYSQL_PROXY_TAR_NAME.tar.gz && \
|
tar -xzvf $MYSQL_PROXY_TAR_NAME.tar.gz && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue