#vulnerable code 
                                EventRoute getEventRoute(final Level logLevel) {
        final int remainingCapacity = remainingDisruptorCapacity();
        if (remainingCapacity < 0) {
            return EventRoute.DISCARD;
        }
        return asyncEventRouter.getRoute(backgroundThreadId, logLevel);
    } 
                            #location 6 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                AsyncLoggerDisruptor(String contextName) {
        this.contextName = contextName;
    }