diff --git a/client/index.js b/client/index.js
index <HASH>..<HASH> 100644
--- a/client/index.js
+++ b/client/index.js
@@ -79,7 +79,8 @@ var onSocketMsg = {
 	},
 	"log-level": function(level) {
 		var hotCtx = require.context("webpack/hot", false, /^\.\/log$/);
-		if(hotCtx.keys().length > 0) {
+		var contextKeys = hotCtx.keys();
+		if(contextKeys.length && contextKeys["./log"]) {
 			hotCtx("./log").setLogLevel(level);
 		}
 		switch(level) {
Proposed fix for ./log module not found (#<I>)

* Proposed fix for ./log module not found



* Fixed code



* Replaces spaces with tabs..