Skip to content

Commit

Permalink
fix: show message, fallback to row data
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev committed Feb 25, 2025
1 parent bae7806 commit fde9f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono-log/src/LogDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const bodyClassName = (rowData) => ({

const FORMAT = Symbol('FORMAT');
const timeBody = (rowData) => (rowData.timestamp ?? new Date(rowData.ms - timezoneOffset).toISOString())?.replace('T', ' ').substring(5, 19);
const messageBody = (rowData) => rowData?.[FORMAT] ? <pre>{JSON.stringify(rowData, undefined, 2)}</pre> : JSON.stringify(rowData);
const messageBody = (rowData) => rowData?.[FORMAT] ? <pre>{JSON.stringify(rowData, undefined, 2)}</pre> : (rowData?.message ?? JSON.stringify(rowData));

const filterElement = levels => (options) => {
return (
Expand Down

0 comments on commit fde9f73

Please sign in to comment.