mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-18 13:28:32 -04:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user