public void logResolveTesterHint()

in sdk-java/src/main/java/com/spotify/confidence/Confidence.java [200:221]


  public void logResolveTesterHint(ResolvedFlag resolvedFlag) {
    final String clientKey = client().clientSecret;
    final String flag = resolvedFlag.getFlag();
    try {
      final ResolveTesterLogging resolveTesterLogging =
          ResolveTesterLogging.newBuilder()
              .setClientKey(clientKey)
              .setFlag(flag)
              .setContext(getContext().toProto())
              .build();
      final String base64 =
          Base64.getEncoder().encodeToString(jsonPrinter.print(resolveTesterLogging).getBytes());
      final String logMessage =
          String.format(
              "Check your flag evaluation for '%s' by copy pasting the payload to the Resolve tester '%s'",
              flag, base64);
      log.debug(logMessage);
    } catch (InvalidProtocolBufferException e) {
      log.warn("Failed to produce correct resolve tester content", e);
      // warn and ignore is enough
    }
  }