@Override
    public void error(String code, String cause, String extendedInformation, String msg) {
        if (getDisabled()) {
            return;
        }

        try {
            getLogger().error(appendContextMessageWithInstructions(code, cause, extendedInformation, msg));
        } catch (Throwable t) {
            // ignored.
        }
    }
@Test
    void testInstructionShownOrNot() {
        LoggerFactory.setLoggerAdapter(FrameworkModel.defaultModel(), "jdk");

        ErrorTypeAwareLogger logger = LoggerFactory.getErrorTypeAwareLogger(FailsafeErrorTypeAwareLoggerTest.class);

        logger.error(
                REGISTRY_ADDRESS_INVALID,
                "Registry center",
                "May be it's offline.",
                "error message",
                new Exception("error"));

        logger.error(
                REGISTRY_ADDRESS_INVALID,
                "Registry center",
                "May be it's offline.",
                "error message",
                new Exception("error"));
    }