Skip to content

Commit 0a65787

Browse files
authored
Merge branch 'main' into fix/passthrough-hashing
2 parents c3b75b1 + 7aa965f commit 0a65787

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.changeset/dirty-zoos-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fixes display of debug messages when using the `--verbose` flag

packages/astro/src/core/logger/core.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ export class Logger {
142142
error(label: string | null, message: string) {
143143
error(this.options, label, message);
144144
}
145-
debug(label: string | null, message: string, ...args: any[]) {
146-
debug(this.options, label, message, args);
145+
debug(label: string | null, ...messages: any[]) {
146+
debug(label, ...messages);
147147
}
148148

149149
level() {
@@ -181,6 +181,6 @@ export class AstroIntegrationLogger {
181181
error(this.options, this.label, message);
182182
}
183183
debug(message: string) {
184-
debug(this.options, this.label, message);
184+
debug(this.label, message);
185185
}
186186
}

packages/astro/src/transitions/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export function navigate(href: string, options?: Options) {
446446
if (!navigateOnServerWarned) {
447447
// instantiate an error for the stacktrace to show to user.
448448
const warning = new Error(
449-
'The view transtions client API was called during a server side render. This may be unintentional as the navigate() function is expected to be called in response to user interactions. Please make sure that your usage is correct.'
449+
'The view transitions client API was called during a server side render. This may be unintentional as the navigate() function is expected to be called in response to user interactions. Please make sure that your usage is correct.'
450450
);
451451
warning.name = 'Warning';
452452
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)