Skip to content

Commit

Permalink
[MAINTENANCE] Disbale logger messages when debug is false
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Glejberman committed Jun 22, 2016
1 parent 2d2f69d commit f76ba4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Translation/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function load($resource = null, $culture = null, $version = 0)
$catalogue->set($id, $value, $type);
} else {
if ($resource != null) {
$this->logger->warning('Translation for key "' . $id . '" and region "' . $resourceName . '" not found!');
if ($this->debug) {
$this->logger->warning('Translation for key "' . $id . '" and region "' . $resourceName . '" not found!');
}
}

if ($this->debug) {
Expand Down

0 comments on commit f76ba4b

Please sign in to comment.