1
0
Fork 0
vaultwarden-test/src
BlackDex 1b64b9e164
Add dev-only query logging support
This PR adds query logging support as an optional feature.
It is only allowed during development/debug builds, and will abort when
used during a `--release` build.

For this feature to be fully activated you also need to se an
environment variable `QUERY_LOGGER=1` to activate the debug log-level
for this crate, else there will be no output.

The reason for this PR is that sometimes it is useful to be able to see
the generated queries, like when debugging an issue, or trying to
optimize a query. Currently i always added this code when needed, but
having this a part of the code could benifit other developers too who
maybe need this.
2022-12-03 18:36:46 +01:00
..
api Add Organizational event logging feature 2022-12-01 22:38:59 +01:00
db Add dev-only query logging support 2022-12-03 18:36:46 +01:00
static Update Vaultwarden Logo's 2022-12-01 22:38:59 +01:00
auth.rs Update Rust version, deps and workflow 2022-11-09 22:40:00 +01:00
config.rs only check sqlite parent if there could be one 2022-12-01 22:38:59 +01:00
crypto.rs Remove get_random_64() 2022-11-13 10:03:06 +01:00
error.rs Add Organizational event logging feature 2022-12-01 22:38:59 +01:00
mail.rs use static_files() for email attachments 2022-10-19 20:39:13 +02:00
main.rs Add dev-only query logging support 2022-12-03 18:36:46 +01:00
ratelimit.rs Basic ratelimit for user login (including 2FA) and admin login 2021-12-22 21:48:49 +01:00
util.rs Add Organizational event logging feature 2022-12-01 22:38:59 +01:00