Skip to content

Commit

Permalink
debugging CI problems
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Oct 7, 2024
1 parent 591ccd1 commit 8b677f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ private void notifyJobsAboutSuccess(List<LogJob> jobs) {
for (var job : jobs) {
if (job.completionNotification() != null) {
job.completionNotification().complete(null);
System.out.println("Log message sent successfully: " + job.message().payload());
}
}
}
Expand All @@ -116,6 +117,7 @@ private void notifyJobsAboutFailure(List<LogJob> jobs, RequestFailureException e
for (var job : jobs) {
if (job.completionNotification() != null) {
job.completionNotification().completeExceptionally(e);
System.out.println("Failed to send log message: " + job.message().payload() + " - " + e);
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions test/Table_Tests/src/Database/Common/Audit_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ add_specs suite_builder prefix ~datalink_to_connection database_pending =

all_events = get_audit_log_events
relevant_events = all_events.filter e-> e.message.contains table_name
Test.with_clue ((relevant_events.map .to_text).join '\n' 'Found relevant events are:\n' '\n') <|

Test.with_clue ((all_events.map .to_text).join '\n' 'Found events are:\n' '\n') <|
create = relevant_events.find (e-> e.message.contains "CREATE")
create.should_succeed
create.user_email . should_equal Enso_User.current.email
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public record LogEvent(
String projectId) {}

public void recordEvent(LogEvent event) {
System.out.println("Received event: " + event);
events.add(event);
}

Expand Down

0 comments on commit 8b677f9

Please sign in to comment.