Skip to content

Commit

Permalink
Slow Query: table not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
digioncz authored and janbarasek committed Jul 9, 2021
1 parent 2732032 commit 26ca048
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ public static function queryExistsByHash(string $hash, EntityManagerInterface $e
}
}
} catch (DBALException $e) {
throw new \RuntimeException($e->getMessage(), $e->getCode(), $e);
$hashExist = false;
if (class_exists(Debugger::class)) {
Debugger::log($e);
}
}
if ($hashExist !== false) {
$cache[$hash] = true;
Expand Down

0 comments on commit 26ca048

Please sign in to comment.