Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up Java
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
with:
java-version: '11'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
with:
cache-disabled: true
# TODO(jradcliff): Add a lint step. Currently blocked by https://github.com/abcxyz/actions/issues/107.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ private void runExample(ParamsConfig params) throws IOException, GeneralSecurity
if (LOGGER.isLoggable(Level.INFO)) {
LOGGER.info(String.format("Response for request #%d:%n%s", requestCount, response));
}

if (response.getFieldWarningsCount() > 0) {
LOGGER.warning(
"Request ingested successfully, but field warnings were returned. Review warning"
+ " details and update your implementation as needed.");
}
}
LOGGER.info("# of requests sent: " + requestCount);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,13 @@ private void runExample(ParamsConfig params) throws IOException {

LOGGER.info(() -> String.format("Request:%n%s", request));
IngestEventsResponse response = ingestionServiceClient.ingestEvents(request);
LOGGER.info(String.format("Response for request #:%n%s", requestCount, response));
LOGGER.info(String.format("Response for request #%d:%n%s", requestCount, response));

if (response.getFieldWarningsCount() > 0) {
LOGGER.warning(
"Request ingested successfully, but field warnings were returned. Review warning"
+ " details and update your implementation as needed.");
}
}

LOGGER.info("# of requests sent: " + requestCount);
Expand Down
Loading