Skip to content
Snippets Groups Projects
Commit f6839ba7 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Log context

parent d04bc162
No related branches found
No related tags found
1 merge request!2Feature/log context
Pipeline #4984 passed
...@@ -18,6 +18,8 @@ class ClientImplementation implements Client, LoggerAwareInterface ...@@ -18,6 +18,8 @@ class ClientImplementation implements Client, LoggerAwareInterface
const DEFAULT_TIMEOUT = 10; const DEFAULT_TIMEOUT = 10;
const LIBRARY_LOGIN_CONTEXT = 'wp-api-client';
/** @var HttpClient */ /** @var HttpClient */
private $client; private $client;
...@@ -201,7 +203,7 @@ class ClientImplementation implements Client, LoggerAwareInterface ...@@ -201,7 +203,7 @@ class ClientImplementation implements Client, LoggerAwareInterface
protected function getLoggerContext($additional_context = '') protected function getLoggerContext($additional_context = '')
{ {
$context = [ $context = [
Platform::LIBARY_LOGIN_CONTEXT, self::LIBRARY_LOGIN_CONTEXT,
self::class self::class
]; ];
if ($additional_context !== '') { if ($additional_context !== '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment