From 9616943c30e0a530d542245e5fe737128ca7020d Mon Sep 17 00:00:00 2001 From: juniperusindica <44541700+juniperusindica@users.noreply.github.com> Date: Sat, 1 Dec 2018 23:51:42 +0200 Subject: [PATCH] Decrease log level to debug (#70) --- src/Jaeger/Config.php | 4 ++-- src/Jaeger/Reporter/LoggingReporter.php | 2 +- tests/Jaeger/Reporter/LoggingReporterTest.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Jaeger/Config.php b/src/Jaeger/Config.php index 0e05319..08dc410 100644 --- a/src/Jaeger/Config.php +++ b/src/Jaeger/Config.php @@ -105,7 +105,7 @@ public function getServiceName(): string private function initializeGlobalTracer(Tracer $tracer) { GlobalTracer::set($tracer); - $this->logger->info('OpenTracing\GlobalTracer initialized to ' . $tracer->getServiceName()); + $this->logger->debug('OpenTracing\GlobalTracer initialized to ' . $tracer->getServiceName()); } /** @@ -173,7 +173,7 @@ private function getLocalAgentSender(): UdpSender $protocol = new TCompactProtocol($transport); $client = new AgentClient($protocol); - $this->logger->info('Initializing Jaeger Tracer with UDP reporter'); + $this->logger->debug('Initializing Jaeger Tracer with UDP reporter'); return new UdpSender($client, $this->getMaxBufferLength(), $this->logger); } diff --git a/src/Jaeger/Reporter/LoggingReporter.php b/src/Jaeger/Reporter/LoggingReporter.php index a255324..264ea94 100644 --- a/src/Jaeger/Reporter/LoggingReporter.php +++ b/src/Jaeger/Reporter/LoggingReporter.php @@ -34,7 +34,7 @@ public function __construct(LoggerInterface $logger = null) */ public function reportSpan(Span $span) { - $this->logger->info('Reporting span ' . $span->getOperationName()); + $this->logger->debug('Reporting span ' . $span->getOperationName()); } /** diff --git a/tests/Jaeger/Reporter/LoggingReporterTest.php b/tests/Jaeger/Reporter/LoggingReporterTest.php index c3b101b..dc7c490 100644 --- a/tests/Jaeger/Reporter/LoggingReporterTest.php +++ b/tests/Jaeger/Reporter/LoggingReporterTest.php @@ -22,7 +22,7 @@ public function shouldReportSpan() $reporter = new LoggingReporter($logger); $logger->expects($this->once()) - ->method('info') + ->method('debug') ->with($this->stringStartsWith('Reporting span')); $reporter->reportSpan($span);