Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to enable logging for debugging #10

Open
real34 opened this issue Sep 23, 2019 · 1 comment
Open

Allow to enable logging for debugging #10

real34 opened this issue Sep 23, 2019 · 1 comment

Comments

@real34
Copy link
Member

real34 commented Sep 23, 2019

The Elasticsearch client cannot be initialized with logging enabled yet. This issue is about allowing to do so for debugging purposes.

See #2 (comment)

@real34
Copy link
Member Author

real34 commented Sep 26, 2019

Quick and dirty tip to achieve this temporarily in dev:

diff --git a/src/lib/vendor/psr/log/Psr/Log/NullLogger.php b/src/lib/vendor/psr/log/Psr/Log/NullLogger.php
index 553a3c5..8a8c225 100644
--- a/src/lib/vendor/psr/log/Psr/Log/NullLogger.php
+++ b/src/lib/vendor/psr/log/Psr/Log/NullLogger.php
@@ -22,6 +22,7 @@ class NullLogger extends AbstractLogger
      */
     public function log($level, $message, array $context = array())
     {
+        echo $message;
         // noop
     }
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant