-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
messaging: Provide metadata for messages
This patch introduces the necessities to provide message metadata. The meta data can be useful to identify the time, phase, actor, topic or hostname. Example usage from an actor: ---------------------------- ``` from leapp.libraries.stdlib import api from leapp.models import MyModel def needs_metadata(): for model in api.consume(MyModel): md = model.message_metadata() if md and md.phase == 'facts': api.current_logger().info('Facts phase run at %s', md.timestamp) ``` Signed-off-by: Vinzenz Feenstra <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
4 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