Added long running query tag

- Now if queries run for longer than 0.5 s, a tag will be appended to the log [LONG RUNNING QUERY]
- If app.db_log_only_long is set to true in the .env file, the db log will only show long running queries.
This commit is contained in:
objecttothis
2023-11-30 14:52:32 +04:00
committed by jekkos
parent e90029dea6
commit 3da79fc47c
2 changed files with 32 additions and 7 deletions

View File

@@ -28,6 +28,13 @@ class App extends BaseConfig
*/
public $db_log_enabled = false;
/**
* DB Query Log only long running queries
*
* @var bool
*/
public $db_log_only_long = false;
/**
* Defines whether to require/reroute to HTTPS
*