fix(medusa-cli): Logger arguments (#6526)

This commit is contained in:
xyzones
2024-03-01 13:03:01 +01:00
committed by GitHub
parent 196e821ff2
commit 45cf692f5e

View File

@@ -311,8 +311,16 @@ export class Reporter {
* A wrapper around winston's log method.
*/
log = (...args) => {
// @ts-ignore
this.loggerInstance_.log(...args)
if (args.length > 1) {
// @ts-ignore
this.loggerInstance_.log(...args)
} else {
let message = args[0]
this.loggerInstance_.log({
level: "info",
message,
})
}
}
}