Skip to content

Commit

Permalink
feat: update info log to warn log in slogger transport
Browse files Browse the repository at this point in the history
  • Loading branch information
Harish-osmosys committed Jan 15, 2025
1 parent b9eb53a commit 3f3c1aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/common/logger/slogerr.transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ export class SlogerrTransport extends TransportStream {
);

if (response.status !== 200) {
this.logger.log(
this.logger.warn(
`Failed to send log to Slogerr. Status: ${response.status}, Message: ${response.statusText}`,
);
} else {
this.logger.log('Error log successfully sent to Slogerr', response);
}
} catch (error) {
this.logger.log('Failed to send log to Slogerr', error.message);
this.logger.warn('Failed to send log to Slogerr', error.message);
}
}

Expand Down

0 comments on commit 3f3c1aa

Please sign in to comment.