Skip to content

Commit

Permalink
Decrease log level to debug (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
dafresh authored and jonahgeorge committed Dec 1, 2018
1 parent 0cc7e0f commit 9616943
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Jaeger/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Jaeger/Reporter/LoggingReporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Jaeger/Reporter/LoggingReporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9616943

Please sign in to comment.