Skip to content

Commit

Permalink
chore: include additional logging info
Browse files Browse the repository at this point in the history
  • Loading branch information
alexieyizhe committed Jun 13, 2021
1 parent 0360f17 commit 214ddc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ export async function getStaticProps() {
customStatus,
};

console.log('Retrieved initial props of', initialProps);

return {
props: initialProps,
revalidate: 300,
revalidate: 60,
};
}
2 changes: 1 addition & 1 deletion src/services/_server_/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class StorageClient {
const { access_token } = await requestNewSpotifyToken();
const newExpiry = Date.now() + 3600 * 1000; // spotify tokens expire in an hour

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

Expand Down

0 comments on commit 214ddc2

Please sign in to comment.