diff --git a/.dockerignore b/.dockerignore
index c9adf6b7c0e121a53453b07b098839f7d5399ba5..c51aee1a9ded60c9bcc97b956de37ae4678ab30f 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,2 +1,3 @@
 assets
-target
\ No newline at end of file
+target
+.env
\ No newline at end of file
diff --git a/src/util/variables.rs b/src/util/variables.rs
index 803d08b1406c870b20b78a2a8a36908755dfeb22..9fc9f170513715ee1dfcea4bafa2e9480d5e76c8 100644
--- a/src/util/variables.rs
+++ b/src/util/variables.rs
@@ -1,6 +1,8 @@
-use log::warn;
 use std::env;
 
+#[cfg(debug_assertions)]
+use log::warn;
+
 lazy_static! {
     // General Configuration
     pub static ref MONGO_URI: String =