Skip to content

Convey proper logging practice in code sample #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion fern/docs/pages/retry-mechanism.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ import { FunctionExecutionError } from '@devrev/typescript-sdk/dist/snap-ins/typ
export const run = async (events: any[]) => {
/*
Put your code here to handle the event.
Note: Do not log the event payload here as it may contain sensitive information.
Instead, explicitly log the fields you need.
*/
console.log('Events: ', JSON.stringify(events));
console.log('Received an event');

try {
// Your event processing logic here
Expand Down
Loading