Skip to content

Commit 9d04365

Browse files
committed
Update logging in usePage hook
1 parent dc4d9d4 commit 9d04365

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/hooks/usePage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function usePage() {
3131
if (window?.location && window.location.href !== currentUrl) {
3232
hasUrl = true;
3333

34-
log.debug('---> new url', window.location.href);
34+
log.debug('-> new url', window.location.href);
3535
setCurrentUrl(window.location.href);
3636
}
3737

@@ -54,7 +54,7 @@ export function usePage() {
5454
}
5555

5656
if (JSON.stringify(channelInfo) !== JSON.stringify(currentChannel)) {
57-
log.debug('---> new channel', channelInfo);
57+
log.debug('-> new channel', channelInfo, currentChannel);
5858
setCurrentChannel(channelInfo);
5959
}
6060
}
@@ -82,7 +82,7 @@ export function usePage() {
8282
setIsDeviceDarkMode(detectedDeviceDark);
8383
}
8484

85-
log.debug('scrape() ---------------------------', { hasUrl, hasChannel });
85+
log.debug('scrape()', { hasUrl, hasChannel });
8686

8787
return hasUrl && hasChannel;
8888
}

0 commit comments

Comments
 (0)