[icinga-checkins] icinga.org: icingaweb2-module-elasticsearch/master: FilterRenderer: Remove usage of JSON_PRETTY_PRINT

git at icinga.org git at icinga.org
Wed May 18 13:51:49 CEST 2016


Module: icingaweb2-module-elasticsearch
Branch: master
Commit: 0ab084d6eea4eac4560641baa03531289f058133
URL:    https://git.icinga.org/?p=icingaweb2-module-elasticsearch.git;a=commit;h=0ab084d6eea4eac4560641baa03531289f058133

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Wed May 18 13:51:10 2016 +0200

FilterRenderer: Remove usage of JSON_PRETTY_PRINT

Does not exist prior php 5.4

---

 library/Elasticsearch/RestApi/FilterRenderer.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Elasticsearch/RestApi/FilterRenderer.php b/library/Elasticsearch/RestApi/FilterRenderer.php
index 7ef6234..ba22821 100644
--- a/library/Elasticsearch/RestApi/FilterRenderer.php
+++ b/library/Elasticsearch/RestApi/FilterRenderer.php
@@ -55,7 +55,7 @@ class FilterRenderer {
     {
         $this->filter = $filter;
         $this->query = $this->renderFilter($this->filter);
-        Logger::debug('Rendered elasticsearch filter: %s', json_encode($this->query, JSON_PRETTY_PRINT));
+        Logger::debug('Rendered elasticsearch filter: %s', json_encode($this->query));
         return $this;
     }
 



More information about the icinga-checkins mailing list