-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AA: handle multiline content in log events
The NELR spec doesn't prescribe a format for the `content` payload of an event. However, since a line break is semantic in the log file, the content cannot be a multi-line string: ``` content = "one two\nthree four five" | v my-domain my-operation one two three four five ``` The result would be ambiguous. This change enforces this assertion. Also added tests for the event log and moved the init log line generation to the eventlog module (as the digest calc is already there) Signed-off-by: Magnus Kulke <[email protected]>
- Loading branch information
Showing
2 changed files
with
145 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters