Skip to content

Commit f873653

Browse files
committed
fix: Update log level determination for HTTP status codes in getLogLevelFromStatus function
1 parent 73a3613 commit f873653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/contentstack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ export function stack(config: StackConfig): StackClass {
156156
function getLogLevelFromStatus(status: number): string {
157157
if (status >= 200 && status < 300) {
158158
return 'info';
159-
} else if (status >= 300 && status < 500) {
159+
} else if (status >= 300 && status < 400) {
160160
return 'warn';
161-
} else if (status >= 500) {
161+
} else if (status >= 400) {
162162
return 'error';
163163
} else {
164164
return 'debug';

0 commit comments

Comments
 (0)