diff options
author | 2023-09-04 20:25:25 +0100 | |
---|---|---|
committer | 2023-09-04 20:25:25 +0100 | |
commit | 01148c19be0047586b8f0b84327e281a021341d8 (patch) | |
tree | bddf22cfede17a16caf83c9ed95397e07b8d605b | |
parent | Update listeners and utils to use new SQLAlchemy 2 models (diff) |
Add configuration option to log all queries
-rw-r--r-- | config-default.toml | 15 | ||||
-rw-r--r-- | metricity/config.py | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/config-default.toml b/config-default.toml index de8290b..9032294 100644 --- a/config-default.toml +++ b/config-default.toml @@ -33,20 +33,14 @@ staff_categories = [ 787641585624940544, 412287621704843264, 881573419878076456, - 820711852652494868 + 820711852652494868, ] # Channels that should be flagged as staff only by channel ID -staff_channels =[ - 412375055910043655 -] +staff_channels = [412375055910043655] # Don't report messages for the following categories -ignore_categories = [ - 714494672835444826, - 890331800025563216, - 895417395261341766 -] +ignore_categories = [714494672835444826, 890331800025563216, 895417395261341766] [database] # Postgres! @@ -62,3 +56,6 @@ port = 5432 database = "metricity" username = "postgres" password = "postgres" + +# Log all queries (SQLAlchemy echo) +log_queries = false diff --git a/metricity/config.py b/metricity/config.py index 9dec9af..5565052 100644 --- a/metricity/config.py +++ b/metricity/config.py @@ -127,3 +127,5 @@ class DatabaseConfig(metaclass=ConfigSection): database: str | None username: str | None password: str | None + + log_queries: bool | None |