Only enable debug logging when enabled flag is set

Previously mDebugLog was always set to true when calling enableDebugLog, no matter what value was passed in for enabled. This would cause onCreate to enable debug logging even if the last call to enableDebugLog had enabled=false.