code: private void log(@NonNull Logger log, @NonNull ComapiResult r, String msg) {
          if (!r.isSuccessful()) {
              log.e(msg + ". Error calling services" + " (" + r.getCode() + "). " + r.getMessage() + ". " + r.getErrorBody());
          }
      }
docs: Log comapi result details.
  
  @param log Logger instance.
  @param r   Service call result.
  @param msg Message with which the log should start with.