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

Improve logging #224

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

janis-veinbergs
Copy link

@janis-veinbergs janis-veinbergs commented Mar 31, 2023

Solves #223

Adds such logging information:

...
Background workflow 'Some workflow name 1' completed successfully
Starting Background workflow: 'Some workflow name 2' for entity 'entity'. timeOffset: 00:00:00
Entering ActivityList. Activities Count: 32 VariableNames: 
Entering ActivityList
Entering CreateVariable. VariableName: ConditionBranchStep2_condition
Entering CreateVariable. VariableName: ConditionBranchStep2_1
Entering CreateVariable. VariableName: ConditionBranchStep2_5
Entering GetEntityProperty. Attribute: statuscode EntityId: InputEntities("primaryEntity") EntityLogicalName: entity....
Entering ActivityList. Activities Count: 6 VariableNames: 
Entering ActivityList
Entering Skip
Entering CreateVariable. VariableName: stepLabelLabelId
Entering CreateVariable. VariableName: stepLabelDescription
Entering CreateVariable. VariableName: stepLabelLanguageCode
Entering CreateVariable. VariableName: StopWorkflowStep3_1
Entering TerminateWorkflow. Status: TerminateWorkflow MessageId: Succeeded
Entering CreateVariable. VariableName: CustomActivityStep4_1
Entering ConvertType. Input: CustomActivityStep4_1, Type: String, Result: CustomActivityStep4_1_converted
Entering CreateVariable. VariableName: CustomActivityStep4_2
Entering ConvertType. Input: CustomActivityStep4_2, Type: Boolean, Result: CustomActivityStep4_2_converted
Entering CallCodeActivity. CodeActivityName: GetPostEntityImageValue
Exception thrown: 'System.Collections.Generic.KeyNotFoundException' in mscorlib.dll
An exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll but was not handled in user code
The given key was not present in the dictionary.

Traces workflow name which is being executed and which steps have been taken. It is much easyer to find at which step workflow failed/exception has been thrown.
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.

1 participant