Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 9d0b494

Browse files
author
rok
committed
changed settings
1 parent 332189e commit 9d0b494

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

config/slow-query-logger.php

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
<?php
22

33
return [
4-
/**
5-
* log all sql queries that are slower than X seconds
6-
* laravel measures at a precision of 2 digits, so 0.7134 will be logged as 0.71
7-
*/
8-
'time-to-log' => 0.7,
4+
/**
5+
* log all sql queries that are slower than X seconds
6+
* laravel measures at a precision of 2 digits, so 0.7134 will be logged as 0.71
7+
*/
8+
'time-to-log' => env('LARAVEL_SLOW_QUERY_LOGGER_TIME_TO_LOG', 0.7),
99

10-
/**
11-
* log when you are on these environments
12-
*/
13-
'environments' => [
14-
'local',
15-
],
10+
/**
11+
* log when you are on these environments
12+
*/
13+
'enabled' => env('LARAVEL_SLOW_QUERY_LOGGER_ENABLED', false),
1614

17-
/**
18-
* level to log
19-
*/
20-
'log-level' => 'debug',
15+
/**
16+
* level to log
17+
*/
18+
'log-level' => env('LARAVEL_SLOW_QUERY_LOGGER_LOG_LEVEL', 'debug'),
2119
];

0 commit comments

Comments
 (0)