Skip to content

Commit

Permalink
Install Pino logging library
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Jun 17, 2024
1 parent c1cd634 commit 7cba581
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/components/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const debouncedSearch = useCallback(
}
}
throw new Error("Something happened. Please try again.");
} catch (e) {
} catch (e: unknown) {
toast.error("Something went wrong. Please try again later.", {
position: "top-right",
duration: Millisecond.TWO_SECOND,
Expand Down
2 changes: 1 addition & 1 deletion client/components/modals/NotifyMeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const NotifyMeModal: React.FC<NotifyMeModalProps> = ({
setPhoneNumber("" as Value);

onSubmitSuccess();
} catch (error) {
} catch (error: unknown) {
console.error("Error submitting form:", error);
onSubmitError();
}
Expand Down
196 changes: 194 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"node-emoji": "^2.1.3",
"node-fetch": "^3.3.2",
"node-llama-cpp": "^3.0.0-beta.22",
"pino": "^9.1.0",
"rate-limiter-flexible": "^5.0.2",
"react": "^18.2.0",
"react-confetti": "^6.1.0",
Expand Down

0 comments on commit 7cba581

Please sign in to comment.