Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adhityamamallan committed Aug 13, 2024
1 parent d0899b1 commit 2a4ca12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { z } from 'zod';
import { LOG_LEVELS, type LogLevel } from '@/utils/logger';

const logToServerPayloadSchema = z.object({
level: z.custom<LogLevel>((v) => LOG_LEVELS.includes(v), 'Invalid log level'),
level: z.custom<LogLevel>(
(v) => LOG_LEVELS.includes(v),
'Invalid log level: expected one of ' + LOG_LEVELS.toString()
),
message: z.string(),
payload: z.any(),
});
Expand Down
File renamed without changes.

0 comments on commit 2a4ca12

Please sign in to comment.