mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-17 04:40:08 -07:00
Disable SQL logger
This commit is contained in:
parent
010decba28
commit
aefe7ce9b2
@ -157,6 +157,8 @@ class ModelLoaderService
|
||||
$sets = tempnam(sys_get_temp_dir(), 'printabrick.');
|
||||
file_put_contents($sets, fopen('compress.zlib://http://rebrickable.com/files/sets.csv.gz', 'r'));
|
||||
|
||||
$this->em->getConnection()->getConfiguration()->setSQLLogger(null);
|
||||
|
||||
if (($handle = fopen($sets, 'r')) !== false) {
|
||||
$header = fgetcsv($handle, 500, ',');
|
||||
|
||||
@ -216,6 +218,8 @@ class ModelLoaderService
|
||||
|
||||
$categoryRepository = $this->em->getRepository('AppBundle:Category');
|
||||
|
||||
$this->em->getConnection()->getConfiguration()->setSQLLogger(null);
|
||||
|
||||
if (($handle = fopen($pieces, 'r')) !== false) {
|
||||
|
||||
// create a new progress bar (50 units)
|
||||
|
Loading…
x
Reference in New Issue
Block a user