Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix warnings
Browse files Browse the repository at this point in the history
frederic-tingaud-sonarsource committed Nov 6, 2023
1 parent a56c49f commit e569b50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/deployment/description.ts
Original file line number Diff line number Diff line change
@@ -59,15 +59,15 @@ const winstonLogger = asciidoc.LoggerManager.newLogger('WinstonLogger', {
const level = severity >= 3 ? 'error' : 'warning';
if (typeof message === "string") {
this.logger.log({
level: level,
message: message,
level,
message,
source: path.basename(__filename)
});
return;
}
const location = message.getSourceLocation();
this.logger.log({
level: level,
level,
message: message.getText(),
source: path.basename(__filename),
file: location.getFile(),

0 comments on commit e569b50

Please sign in to comment.