comparison vendor/symfony/http-kernel/DataCollector/LoggerDataCollector.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
124 { 124 {
125 if (null === $this->containerPathPrefix || !file_exists($file = $this->containerPathPrefix.'Deprecations.log')) { 125 if (null === $this->containerPathPrefix || !file_exists($file = $this->containerPathPrefix.'Deprecations.log')) {
126 return []; 126 return [];
127 } 127 }
128 128
129 if ('' === $logContent = trim(file_get_contents($file))) {
130 return [];
131 }
132
129 $bootTime = filemtime($file); 133 $bootTime = filemtime($file);
130 $logs = []; 134 $logs = [];
131 foreach (unserialize(file_get_contents($file)) as $log) { 135 foreach (unserialize($logContent) as $log) {
132 $log['context'] = ['exception' => new SilencedErrorContext($log['type'], $log['file'], $log['line'], $log['trace'], $log['count'])]; 136 $log['context'] = ['exception' => new SilencedErrorContext($log['type'], $log['file'], $log['line'], $log['trace'], $log['count'])];
133 $log['timestamp'] = $bootTime; 137 $log['timestamp'] = $bootTime;
134 $log['priority'] = 100; 138 $log['priority'] = 100;
135 $log['priorityName'] = 'DEBUG'; 139 $log['priorityName'] = 'DEBUG';
136 $log['channel'] = '-'; 140 $log['channel'] = '-';