Fixed log level check in Debug method to check against LogLevel.Debug.