diff options
author | VirtualTam <virtualtam@flibidi.net> | 2016-01-16 16:16:56 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2016-01-16 16:19:44 +0100 |
commit | 478ce8afb467d59eb3dce5ec4a9e9446b134aecf (patch) | |
tree | 6858a1d21267f504ddad6c40af616127cb4110b4 /tests | |
parent | 73151d95469b6aee727f3c1f55c07bb91346f9d3 (diff) | |
download | Shaarli-478ce8afb467d59eb3dce5ec4a9e9446b134aecf.tar.gz Shaarli-478ce8afb467d59eb3dce5ec4a9e9446b134aecf.tar.zst Shaarli-478ce8afb467d59eb3dce5ec4a9e9446b134aecf.zip |
Logging: improve formatting to enable fail2ban parsing
Fixes #436
Modifications:
- remove calls to strval() on safe data
- update the date format: 'Y/m/d_H:i:s' => 'Y/m/d H:i:s'
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/UtilsTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index 869a9695..f3bb556e 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php | |||
@@ -22,7 +22,7 @@ class UtilsTest extends PHPUnit_Framework_TestCase | |||
22 | protected static $testLogFile = 'tests.log'; | 22 | protected static $testLogFile = 'tests.log'; |
23 | 23 | ||
24 | // Expected log date format | 24 | // Expected log date format |
25 | protected static $dateFormat = 'Y/m/d_H:i:s'; | 25 | protected static $dateFormat = 'Y/m/d H:i:s'; |
26 | 26 | ||
27 | 27 | ||
28 | /** | 28 | /** |