Skip to content

Commit

Permalink
Ensures message is string
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroadway committed Apr 22, 2013
1 parent 70bb491 commit a0c834a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Analog/Logger.php
Expand Up @@ -103,6 +103,10 @@ public function convert_log_level ($level, $reverse = false) {
* Interpolates context values into the message placeholders.
*/
private function interpolate ($message, array $context = array ()) {
if (is_array ($message)) {
return $message;
}

// build a replacement array with braces around the context keys
$replace = array ();
foreach ($context as $key => $val) {
Expand Down

0 comments on commit a0c834a

Please sign in to comment.