From 1d14140986874a116e2c088df96e12d9c83fe848 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 7 Jan 2022 14:30:06 +0100 Subject: [PATCH] Ensured remote IP address is not logged when using swoole/openswoole --- CHANGELOG.md | 1 + config/autoload/logger.global.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2831c237..756eeaaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this ### Fixed * [#1293](https://github.com/shlinkio/shlink/issues/1293) Fixed error when trying to create/import short URLs with a too long title. +* [#1306](https://github.com/shlinkio/shlink/issues/1306) Ensured remote IP address is not logged when using swoole/openswoole. ## [2.10.1] - 2021-12-21 diff --git a/config/autoload/logger.global.php b/config/autoload/logger.global.php index 7c0e4f00..e6fcd43c 100644 --- a/config/autoload/logger.global.php +++ b/config/autoload/logger.global.php @@ -82,7 +82,7 @@ return [ 'swoole-http-server' => [ 'logger' => [ 'logger-name' => 'Logger_Access', - 'format' => '%h %l %u "%r" %>s %b', + 'format' => '%u "%r" %>s %B', ], ], ],