mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-14 13:08:27 +03:00
fix: invert debug flag to set DB logging flag
This commit is contained in:
parent
b30bc67bd4
commit
be9c6b757e
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ impl Data {
|
|||
let connection_options = ConnectionOptions::Fresh(Fresh {
|
||||
pool_options,
|
||||
url: s.database.url.clone(),
|
||||
disable_logging: s.debug,
|
||||
disable_logging: !s.debug,
|
||||
});
|
||||
let db = connection_options.connect().await.unwrap();
|
||||
db.migrate().await.unwrap();
|
||||
|
|
Loading…
Add table
Reference in a new issue