Skip to content

Commit

Permalink
Add message to the status page (stellar#310)
Browse files Browse the repository at this point in the history
* Add message to the status page

* Improve logging

* Improve logging

* Improve logging

* Pr comment
  • Loading branch information
Ifropc authored May 3, 2023
1 parent 95e5d42 commit 17be677
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ export const pollDepositUntilComplete = async ({
title: `Transaction \`${transactionId}\` more info is available via url: \`${transactionJson.transaction.more_info_url}\``,
});
}
log.instruction({
title: `Transaction \`${transactionId}\` is in \`${transactionJson.transaction.status}\` status`,

log.response({
title: `Transaction \`${transactionId}\` is in \`${transactionJson.transaction.status}\` status.`,
body: transactionJson.transaction,
});

switch (currentStatus) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ export const pollWithdrawUntilComplete = async ({
// eslint-disable-next-line no-param-reassign
popup.location.href = transactionJson.transaction.more_info_url;

log.instruction({
title: `Transaction \`${transactionId}\` is in \`${transactionJson.transaction.status}\` status`,
log.response({
title: `Transaction \`${transactionId}\` is in \`${transactionJson.transaction.status}\` status.`,
body: transactionJson.transaction,
});

switch (currentStatus) {
Expand Down

0 comments on commit 17be677

Please sign in to comment.