Skip to content

Commit

Permalink
Fixing-Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iskipu committed Jan 30, 2024
1 parent 16cb765 commit a6e7a24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kolibri/core/assets/src/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class Logger {
constructor(loggerName) {
this.loggerName = loggerName;
this.logger = loglevel.getLogger(loggerName);
loglevel.levels["log"] = 1
loglevel.levels['log'] = 1;
Object.keys(loglevel.levels).forEach(methodName => {
const name = methodName.toLowerCase();
const logFunction = this.logger[name];
if (logFunction) {
this[name] = (param) => {
this[name] = param => {
return this.logger[name].bind(console, this.messagePrefix(name))(param);
}
};
}
});
}
Expand Down

0 comments on commit a6e7a24

Please sign in to comment.