Skip to content

Commit 214ddc2

Browse files
committed
chore: include additional logging info
1 parent 0360f17 commit 214ddc2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/pages/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ export async function getStaticProps() {
7171
customStatus,
7272
};
7373

74+
console.log('Retrieved initial props of', initialProps);
75+
7476
return {
7577
props: initialProps,
76-
revalidate: 300,
78+
revalidate: 60,
7779
};
7880
}

src/services/_server_/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class StorageClient {
4040
const { access_token } = await requestNewSpotifyToken();
4141
const newExpiry = Date.now() + 3600 * 1000; // spotify tokens expire in an hour
4242

43-
console.debug(`Token expired, new with expiry ${newExpiry.toString()}`);
43+
console.log(`Token expired, new with expiry ${newExpiry.toString()}`);
4444
await this.client.set(StorageKey.ACCESS_TOKEN, access_token);
4545
await this.client.set(StorageKey.ACCESS_TOKEN_EXPIRY, newExpiry);
4646

0 commit comments

Comments
 (0)