Adding isDebugBuild check on debug.log calls