Skip to content
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

Added support for logging Flow fault messages #105

Merged
merged 4 commits into from
Mar 16, 2021

Conversation

jongpie
Copy link
Owner

@jongpie jongpie commented Mar 16, 2021

Closes #98 by adding new properties & updated logic in FlowLogEntry and FlowRecordLogEntry

  • Both classes now have an optional string property faultMessage
  • When the property faultMessage is set, the entry's logging level defaults to 'ERROR' (new behavior). When it's null, the default is still 'DEBUG' (existing behavior).
  • When the property faultMessage is set, the field LogEntry__c.ExceptionType__c is automatically set to Flow.FaultError and the fault message is stored in the field LogEntry__c.ExceptionMessage__c - effectively, the Flow fault error is logged the same way an Exception is logged in the Apex methods

@jongpie jongpie merged commit 9aea097 into master Mar 16, 2021
@jongpie jongpie deleted the feature/flow-fault-messages branch March 16, 2021 03:50
@jongpie jongpie added this to the Version 4.3.0 milestone Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add better support for logging Flow fault exceptions
2 participants