Fix to the logging activity method to ensure debug logging is enabled.