https://pulumi.com logo
#automation-api
Title
# automation-api
h

handsome-state-59775

09/20/2021, 8:14 AM
[python] how do i specify the automation API equivalents of
--debug --logflow --verbose 9
?
l

lemon-agent-27707

09/20/2021, 2:26 PM
r

red-match-15116

09/21/2021, 3:40 PM
You should be able to get most (maybe all?) of the same information from the event log’s `DiagEvent`s
h

handsome-state-59775

10/06/2021, 11:30 AM
@red-match-15116 example code please? i'm using python3 with azure-native
r

red-match-15116

10/06/2021, 3:55 PM
I don’t have exact example code in python, but basically you’ll want to do something like here: https://github.com/pulumi/pulumi/blob/master/sdk/python/lib/test/automation/test_local_workspace.py#L505 But instead of a summaryEvent, you’ll want to look at the `DiagnosticEvent`s - which are defined in this file The most straightforward thing you could do is to just do
on_event=print
to print all the events to stdout.
2 Views