From ab2a510bc61e18e69f853795cf01ae3ffc932c58 Mon Sep 17 00:00:00 2001
From: Paul Makles <paulmakles@gmail.com>
Date: Sun, 30 Aug 2020 18:04:38 +0100
Subject: [PATCH] Add .env to ignore and remove warning.

---
 .dockerignore         | 3 ++-
 src/util/variables.rs | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.dockerignore b/.dockerignore
index c9adf6b..c51aee1 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 803d08b..9fc9f17 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 =
-- 
GitLab