aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/database.rs
diff options
context:
space:
mode:
authorrustdesk <[email protected]>2022-05-13 09:56:44 +0800
committerrustdesk <[email protected]>2022-05-13 09:56:44 +0800
commitcb26ce5bbcf3edca54890cc9b82b48c971bacccb (patch)
tree8f7c36912df75c904dbba07b4238ccc090b95062 /src/database.rs
parentdf2e4bb411cd0aa4b46a7cabcde1025b5058ce0f (diff)
downloadrustdesk-server-cb26ce5bbcf3edca54890cc9b82b48c971bacccb.tar.gz
rustdesk-server-cb26ce5bbcf3edca54890cc9b82b48c971bacccb.zip
remove confusions
Diffstat (limited to 'src/database.rs')
-rw-r--r--src/database.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.rs b/src/database.rs
index 5a199e6..cf64faf 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -55,11 +55,11 @@ impl Database {
if !std::path::Path::new(url).exists() {
std::fs::File::create(url).ok();
}
- let n: usize = std::env::var("MAX_CONNECTIONS")
+ let n: usize = std::env::var("MAX_DATABASE_CONNECTIONS")
.unwrap_or("1".to_owned())
.parse()
.unwrap_or(1);
- log::info!("MAX_CONNECTIONS={}", n);
+ log::debug!("MAX_DATABASE_CONNECTIONS={}", n);
let pool = Pool::new(
DbPool {
url: url.to_owned(),