Skip to content

Commit

Permalink
Merge pull request #1 from aman00323/master
Browse files Browse the repository at this point in the history
Commenting log that occupies too much memory
  • Loading branch information
munir131 authored Feb 24, 2020
2 parents 40c6275 + 3d212ba commit 614e63b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Drivers/Zipkin/ZipkinTracer.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ protected function resolveCollectorIp(string $host): string
if ($ipv4 == $host) {
$e = new UnresolvedCollectorIpException("Unable to resolve collector's IP address from hostname");

app('log')->warning($e->getMessage(), ['exception' => $e]);
// Comment below line because it logs too much data. That occupies large memory and at the end it throws memory error.
//app('log')->warning($e->getMessage(), ['exception' => $e]);

return "127.0.0.1";
}
Expand Down

0 comments on commit 614e63b

Please sign in to comment.