Skip to content

Commit

Permalink
do not try to expand the context into a path unless there is context …
Browse files Browse the repository at this point in the history
…to expand
  • Loading branch information
enobrev committed Oct 28, 2017
1 parent 1c546e2 commit 10c8961
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ private static function prepareContext($sMessage, array $aContext = []) {
}
}

self::assignArrayByPath($aLog, $sMessage, $aContext);
if (count($aContext)) {
self::assignArrayByPath($aLog, $sMessage, $aContext);
}
}

return $aLog;
Expand Down

0 comments on commit 10c8961

Please sign in to comment.