@@ 109-117 (lines=9) @@ | ||
106 | unset($record['extra']['file']); |
|
107 | } |
|
108 | ||
109 | foreach ($record['extra'] as $key => $val) { |
|
110 | $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); |
|
111 | $len = strlen($this->extraPrefix . $key . $val); |
|
112 | if ($len > $this->maxLength) { |
|
113 | $message->setAdditional($this->extraPrefix . $key, substr($val, 0, $this->maxLength)); |
|
114 | break; |
|
115 | } |
|
116 | $message->setAdditional($this->extraPrefix . $key, $val); |
|
117 | } |
|
118 | ||
119 | foreach ($record['context'] as $key => $val) { |
|
120 | $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); |
|
@@ 119-127 (lines=9) @@ | ||
116 | $message->setAdditional($this->extraPrefix . $key, $val); |
|
117 | } |
|
118 | ||
119 | foreach ($record['context'] as $key => $val) { |
|
120 | $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); |
|
121 | $len = strlen($this->contextPrefix . $key . $val); |
|
122 | if ($len > $this->maxLength) { |
|
123 | $message->setAdditional($this->contextPrefix . $key, substr($val, 0, $this->maxLength)); |
|
124 | break; |
|
125 | } |
|
126 | $message->setAdditional($this->contextPrefix . $key, $val); |
|
127 | } |
|
128 | ||
129 | if (null === $message->getFile() && isset($record['context']['exception']['file'])) { |
|
130 | if (preg_match("/^(.+):([0-9]+)$/", $record['context']['exception']['file'], $matches)) { |