| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 39 | public function log($message, $priority = self::INFO) : void | ||
| 40 | 	{ | ||
| 41 | parent::log($message, $priority); | ||
| 42 | |||
| 43 | // Log only errors | ||
| 44 | 		if ($priority === self::ERROR || $priority === self::CRITICAL) { | ||
| 45 | 			if (is_array($message)) { | ||
| 46 | 				$message = implode(' ', $message); | ||
| 47 | } | ||
| 48 | |||
| 49 | newrelic_notice_error($message); | ||
| 50 | } | ||
| 51 | } | ||
| 52 | } | ||
| 53 |