private static void logException(RequestContext ctx,
                                     String requestOrResponse, Throwable cause) {
        try (SafeCloseable ignored = ctx.push()) {
            logger.warn("{} Unexpected exception while logging {}: ", ctx, requestOrResponse, cause);
        }
    }
Logs request and response using the specified {@link LogWriter}.
core/src/main/java/com/linecorp/armeria/internal/common/logging/LoggingUtils.java