diff --git a/.gitignore b/.gitignore index 84bbcdd07a7362d0f64786d88e0676bca4e8c444..d371e990e87c6474a0e5a48e58a9b76a078b62ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules +.pnpm-store .turbo .idea .next diff --git a/apps/blog/app/[param]/[p2]/[permlink]/layout.tsx b/apps/blog/app/[param]/[p2]/[permlink]/layout.tsx index b411636a0b646d608a1b3fed6dd8ddc3c5c44d18..9538b3b912230fc86783befe5295b3a2f84096eb 100644 --- a/apps/blog/app/[param]/[p2]/[permlink]/layout.tsx +++ b/apps/blog/app/[param]/[p2]/[permlink]/layout.tsx @@ -49,7 +49,7 @@ export async function generateMetadata({ } }; } catch (error) { - logger.error('Error in generateMetadata:', error); + logger.error(error, 'Error in generateMetadata'); return { title: 'Hive', description: 'Hive: Communities Without Borders.', diff --git a/packages/smart-signer/lib/api-handlers/auth/chat-token.ts b/packages/smart-signer/lib/api-handlers/auth/chat-token.ts index c66277e1d3115bffcbf7ae610753711860a7942f..a439480008b16f59951db8b930a4c83955b728b0 100644 --- a/packages/smart-signer/lib/api-handlers/auth/chat-token.ts +++ b/packages/smart-signer/lib/api-handlers/auth/chat-token.ts @@ -27,7 +27,7 @@ export const getChatToken: NextApiHandler = async (req, res) => { ); user = session.user; } catch (error) { - logger.error('getChatToken error:', error); + logger.error(error, 'getChatToken error'); } if (!( diff --git a/packages/smart-signer/lib/api-handlers/auth/consent.ts b/packages/smart-signer/lib/api-handlers/auth/consent.ts index ce38ad1dcb2ed3bd649538e602c29d8b4988c38a..32787b7b0a84d05afd1bba90c73b94242e147730 100644 --- a/packages/smart-signer/lib/api-handlers/auth/consent.ts +++ b/packages/smart-signer/lib/api-handlers/auth/consent.ts @@ -27,7 +27,7 @@ export const registerConsent: NextApiHandler = async (req, res) => { ); user = session.user; } catch (error) { - logger.error('registerConsent error:', error); + logger.error(error, 'registerConsent error'); } if (!(user?.isLoggedIn && user.username)) { diff --git a/packages/smart-signer/lib/auth/use-logout.ts b/packages/smart-signer/lib/auth/use-logout.ts index d42c50cc7f221d7fc4e6a04194ac880774d843dc..c15fd280b31810685d9edabf552268b722f17ecb 100644 --- a/packages/smart-signer/lib/auth/use-logout.ts +++ b/packages/smart-signer/lib/auth/use-logout.ts @@ -31,7 +31,7 @@ export function useLogout(redirect?: string) { }) }); } catch (logError) { - logger.error('Failed to log logout event:', logError); + logger.error(logError, 'Failed to log logout event'); } } await signOut.mutateAsync({ user }); @@ -43,7 +43,7 @@ export function useLogout(redirect?: string) { description: 'Logout failed', variant: 'destructive' }); - logger.error('Error in logout', error); + logger.error(error, 'Error in logout'); } finally { if (redirect) { router.push(redirect); diff --git a/packages/smart-signer/lib/verify-login.ts b/packages/smart-signer/lib/verify-login.ts index 7f4e431b467ae88e369cdeb975ecbe8a931664f9..35e3970d4cc5ca6a6c2ecaf4c54e9704d7f881f2 100644 --- a/packages/smart-signer/lib/verify-login.ts +++ b/packages/smart-signer/lib/verify-login.ts @@ -29,7 +29,7 @@ export async function verifyLogin(data: PostLoginSchema): Promise { }; return user; } catch (error) { - logger.error('error in verifyLogin', error); + logger.error(error, 'Error in verifyLogin'); throw error; } }