Skip to content

Commit

Permalink
fix(logger): namespace label in debug logger (#9067)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhajduk authored Nov 13, 2023
1 parent 5f2db42 commit c6e449c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-zoos-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes display of debug messages when using the `--verbose` flag
6 changes: 3 additions & 3 deletions packages/astro/src/core/logger/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
}
}

0 comments on commit c6e449c

Please sign in to comment.