From 6b9a3259f5b4da2066131ca3ae49fc991b129350 Mon Sep 17 00:00:00 2001 From: Ignas Kiela Date: Tue, 23 May 2023 12:09:15 +0300 Subject: [PATCH] fix: log levels order Most important messages are the ones with the highest value This is a fixup for commit c5327f74d42a811e4a924b0f72b8cd8aaa0d0b71. --- packages/backend/src/services/logger.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/services/logger.ts b/packages/backend/src/services/logger.ts index 5c24186b6..9d4190ca3 100644 --- a/packages/backend/src/services/logger.ts +++ b/packages/backend/src/services/logger.ts @@ -12,11 +12,11 @@ type Domain = { }; export const LEVELS = { - error: 0, - warning: 1, - success: 2, - info: 3, - debug: 4, + error: 5, + warning: 4, + success: 3, + info: 2, + debug: 1, }; export type Level = LEVELS[keyof LEVELS];