Skip to content

Commit

Permalink
fix: sort by log severity level (#5390)
Browse files Browse the repository at this point in the history
  • Loading branch information
keita-determined authored Nov 9, 2022
1 parent 5c7d5c7 commit e6d5f6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webui/react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,14 +730,17 @@ export const LogLevel = {

export type LogLevel = ValueOf<typeof LogLevel>;

// Disable `sort-keys` to sort LogLevel by higher severity levels
export const LogLevelFromApi = {
Critical: 'LOG_LEVEL_CRITICAL',
Debug: 'LOG_LEVEL_DEBUG',
Error: 'LOG_LEVEL_ERROR',
Warning: 'LOG_LEVEL_WARNING',
// eslint-disable-next-line sort-keys-fix/sort-keys-fix
Info: 'LOG_LEVEL_INFO',
// eslint-disable-next-line sort-keys-fix/sort-keys-fix
Debug: 'LOG_LEVEL_DEBUG',
Trace: 'LOG_LEVEL_TRACE',
Unspecified: 'LOG_LEVEL_UNSPECIFIED',
Warning: 'LOG_LEVEL_WARNING',
} as const;

export type LogLevelFromApi = ValueOf<typeof LogLevelFromApi>;
Expand Down

0 comments on commit e6d5f6d

Please sign in to comment.