Skip to content

Commit

Permalink
update err log color
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Oct 14, 2024
1 parent 3643458 commit 65994e7
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,21 @@ export function RunLogsFilter({
}

const Log = ({ log }: { log: any }) => {
const isError = log?.message_types?.includes('error');

return (
<p className="mb-2">
<span className="text-cyan-400 mr-2">{log?.created_at}</span>
<span className="text-yellow-500 mr-2">{log?.context}</span>
<span className="text-purple-500 mr-2">{log?.block_name}</span>
<span className="text-gray-300 mr-2">{log?.message}</span>
<span
className={cn('mr-2', {
'text-red-500': isError,
'text-gray-300': !isError,
})}
>
{log?.message}
</span>
<span className="text-green-300">{log?.message_types?.join(' -> ')}</span>
</p>
);
Expand Down

0 comments on commit 65994e7

Please sign in to comment.