Debugging API server requests

Sometimes it's needed to see how the API calls are sent to the juju api server. To do this run:

$ juju bootstrap tester localhost
$ juju switch controller
$ juju model-config logging-config="<root>=DEBUG;juju.apiserver=TRACE"

and then do a deploy and grep the machine-0.log for the API resource call

Same applies for Juju 1.x