Bug fix to requestLoggingFunction