Skip to content

Will log entries be discarded if you don't save then in the calling method? #867

Answered by jongpie
kenhov asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kenhov - that should be completely fine to do. When there are any unsaved log entries, they are simply discarded automatically at the end of an Apex transaction. It's really up to you to decide if/when you save the log entries, and there shouldn't be any issues with opting to not save them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kenhov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants