Adjust payload field to print content if bytes are printable

This commit is contained in:
Ken Hibino
2021-06-01 20:37:18 -07:00
parent 5fad928589
commit d96ed1f2b3
9 changed files with 41 additions and 19 deletions

View File

@@ -288,7 +288,7 @@ function Row(props: RowProps) {
language="json"
customStyle={{ margin: 0, maxWidth: 400 }}
>
{JSON.stringify(task.payload)}
{task.payload}
</SyntaxHighlighter>
</TableCell>
<TableCell>{task.canceling ? "Canceling" : "Running"}</TableCell>

View File

@@ -331,7 +331,7 @@ function Row(props: RowProps) {
language="json"
customStyle={{ margin: 0, maxWidth: 400 }}
>
{JSON.stringify(task.payload)}
{task.payload}
</SyntaxHighlighter>
</TableCell>
<TableCell>{timeAgo(task.last_failed_at)}</TableCell>

View File

@@ -333,7 +333,7 @@ function Row(props: RowProps) {
language="json"
customStyle={{ margin: 0, maxWidth: 400 }}
>
{JSON.stringify(task.payload)}
{task.payload}
</SyntaxHighlighter>
</TableCell>
<TableCell align="right">{task.retried}</TableCell>

View File

@@ -365,7 +365,7 @@ function Row(props: RowProps) {
language="json"
customStyle={{ margin: 0, maxWidth: 400 }}
>
{JSON.stringify(task.payload)}
{task.payload}
</SyntaxHighlighter>
</TableCell>
<TableCell>{durationBefore(task.next_process_at)}</TableCell>

View File

@@ -362,7 +362,7 @@ function Row(props: RowProps) {
language="json"
customStyle={{ margin: 0, maxWidth: 400 }}
>
{JSON.stringify(task.payload)}
{task.payload}
</SyntaxHighlighter>
</TableCell>
<TableCell>{durationBefore(task.next_process_at)}</TableCell>

View File

@@ -288,7 +288,7 @@ function Row(props: RowProps) {
</TableCell>
<TableCell className={clsx(isLastRow && classes.noBorder)}>
<SyntaxHighlighter language="json">
{JSON.stringify(entry.task_payload)}
{entry.task_payload}
</SyntaxHighlighter>
</TableCell>
<TableCell className={clsx(isLastRow && classes.noBorder)}>

View File

@@ -282,7 +282,7 @@ function Row(props: RowProps) {
language="json"
customStyle={{ margin: 0 }}
>
{JSON.stringify(worker.task_payload)}
{worker.task_payload}
</SyntaxHighlighter>
</TableCell>
<TableCell>{worker.queue}</TableCell>