From f6839ba7b85a20d176994de361c0a5621ba6277e Mon Sep 17 00:00:00 2001 From: Grzegorz Rola <grola@seostudio.pl> Date: Sat, 9 Feb 2019 14:41:26 +0100 Subject: [PATCH] Log context --- src/Client/ClientImplementation.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Client/ClientImplementation.php b/src/Client/ClientImplementation.php index feaeb75..f948bec 100644 --- a/src/Client/ClientImplementation.php +++ b/src/Client/ClientImplementation.php @@ -18,6 +18,8 @@ class ClientImplementation implements Client, LoggerAwareInterface const DEFAULT_TIMEOUT = 10; + const LIBRARY_LOGIN_CONTEXT = 'wp-api-client'; + /** @var HttpClient */ private $client; @@ -201,7 +203,7 @@ class ClientImplementation implements Client, LoggerAwareInterface protected function getLoggerContext($additional_context = '') { $context = [ - Platform::LIBARY_LOGIN_CONTEXT, + self::LIBRARY_LOGIN_CONTEXT, self::class ]; if ($additional_context !== '') { -- GitLab