diff --git a/bin/ucoind b/bin/ucoind
index 2f4eeebbf22d6eb2ad46300d1752d3420cd8a3f2..55c40710b4bf64120ce19ed32b48b9825e3c9aa7 100755
--- a/bin/ucoind
+++ b/bin/ucoind
@@ -776,14 +776,16 @@ function connect(callback, forConf, useDefaultConf) {
 
 function service(callback, nologs) {
 
-  if (nologs) {
-    // Disable logs
-    require('log4js').configure({
-      "appenders": [
-      ]
-    });
-  }
   return function () {
+
+    if (nologs) {
+      // Disable logs
+      require('log4js').configure({
+        "appenders": [
+        ]
+      });
+    }
+
     var cbArgs = arguments;
     var dbName = program.mdb || "ucoin_default";