Merge pull request #6574 from turbo124/v5-develop

Disable query logging
This commit is contained in:
David Bomba 2021-09-04 17:54:15 +10:00 committed by GitHub
commit 22077165b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 3 deletions

View File

@ -52,10 +52,10 @@ class QueryLogging
$timeEnd = microtime(true);
$time = $timeEnd - $timeStart;
nlog("Query count = {$count}");
nlog("Query count = {$count}");
//if($count > 250)
nlog($queries);
if($count > 250)
nlog($queries);
$ip = '';

View File

@ -0,0 +1,39 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace Database\Factories;
use App\Models\Document;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class DocumentFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Document::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'is_default' => true,
'is_public' => true,
'name' => true,
];
}
}