0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

fix(logger): namespace label in debug logger (#9067)

This commit is contained in:
Daniel Hajduk 2023-11-13 10:07:46 +01:00 committed by GitHub
parent 5f2db426ce
commit c6e449c5b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes display of debug messages when using the `--verbose` flag

View file

@ -142,8 +142,8 @@ export class Logger {
error(label: string | null, message: string) {
error(this.options, label, message);
}
debug(label: string | null, message: string, ...args: any[]) {
debug(this.options, label, message, args);
debug(label: string | null, ...messages: any[]) {
debug(label, ...messages);
}
level() {
@ -181,6 +181,6 @@ export class AstroIntegrationLogger {
error(this.options, this.label, message);
}
debug(message: string) {
debug(this.options, this.label, message);
debug(this.label, message);
}
}