Skip to content

Commit

Permalink
Log the raw received github message in the broker to debug current issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbobbio committed Dec 31, 2024
1 parent 2e41cbb commit 4bff471
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/maelstrom-util/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ where
MessageT: Debug + DeserializeOwned,
{
async {
queue
.read_msg()
.await?
let raw_msg = queue.read_msg().await?;
debug!(log, "received raw message"; "raw_message" => #?raw_msg);
raw_msg
.as_ref()
.map(|m| proto::deserialize(m))
.transpose()
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-tests-on-maelstrom-inner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PYTEST_ARGS=""
if [[ $# -gt 0 ]]; then
export ACTIONS_RUNTIME_TOKEN=$1
export ACTIONS_RESULTS_URL=$2
BROKER_ARGS="$BROKER_ARGS --artifact-transfer-strategy github"
BROKER_ARGS="$BROKER_ARGS --artifact-transfer-strategy github --log-level=debug"
WORKER_ARGS="$WORKER_ARGS --artifact-transfer-strategy github --broker-connection github"
CARGO_ARGS="$CARGO_ARGS --artifact-transfer-strategy github"
PYTEST_ARGS="$PYTEST_ARGS --artifact-transfer-strategy github"
Expand Down

0 comments on commit 4bff471

Please sign in to comment.