fix(medusa-cli): Logger arguments (#6526)
This commit is contained in:
@@ -311,8 +311,16 @@ export class Reporter {
|
|||||||
* A wrapper around winston's log method.
|
* A wrapper around winston's log method.
|
||||||
*/
|
*/
|
||||||
log = (...args) => {
|
log = (...args) => {
|
||||||
// @ts-ignore
|
if (args.length > 1) {
|
||||||
this.loggerInstance_.log(...args)
|
// @ts-ignore
|
||||||
|
this.loggerInstance_.log(...args)
|
||||||
|
} else {
|
||||||
|
let message = args[0]
|
||||||
|
this.loggerInstance_.log({
|
||||||
|
level: "info",
|
||||||
|
message,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user