[HttpKernel] Catch exception when SQLite profiler storage fails to cleanup
This commit is contained in:
parent
ea4ab77b6d
commit
4252680ccf
@ -94,11 +94,11 @@ class SQLiteProfilerStorage implements ProfilerStorageInterface
|
|||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
$this->exec($db, 'INSERT INTO data (token, data, ip, url, time, created_at) VALUES (:token, :data, :ip, :url, :time, :created_at)', $args);
|
$this->exec($db, 'INSERT INTO data (token, data, ip, url, time, created_at) VALUES (:token, :data, :ip, :url, :time, :created_at)', $args);
|
||||||
|
$this->cleanup();
|
||||||
$status = true;
|
$status = true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$status = false;
|
$status = false;
|
||||||
}
|
}
|
||||||
$this->cleanup();
|
|
||||||
$this->close($db);
|
$this->close($db);
|
||||||
|
|
||||||
return $status;
|
return $status;
|
||||||
|
Reference in New Issue
Block a user