Rewrite logstash key conflict warning from I6677dbf6
authorGergő Tisza <gtisza@wikimedia.org>
Wed, 23 Nov 2016 01:01:07 +0000 (01:01 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Tue, 29 Nov 2016 11:14:08 +0000 (11:14 +0000)
commit98f143e0f48cd024c02d40083951c5b26d7ee7dc
tree14b3b01b58226ea807d24b251e15791d0cc251de
parent057b870b47a56fa8e7e056df02c2334d2273caea
Rewrite logstash key conflict warning from I6677dbf6

* do not warn if something is overwritten with an identical value
  (happens a lot with 'ip')
* move to LogstashFormatter so we can check for the value
* instead of spamming errors, just add a flag to the logstash data

Bug: T145133
Change-Id: I31caee865cd60c785126478ac75c9aefce78eaaf
autoload.php
includes/debug/logger/monolog/LogstashFormatter.php [new file with mode: 0644]
includes/debug/logger/monolog/WikiProcessor.php
tests/phpunit/includes/debug/logger/monolog/LogstashFormatterTest.php [new file with mode: 0644]