Remove logging of the pebble plan
The pebble plan output includes a full dump of the services config, including environment variables. These can contain sensitive information such as cloud credentials, so avoid logging these. An alternative method to retrieve this information for debugging, is to ssh into the workload container, and run `pebble plan`: ``` ~$ juju ssh --container tempest tempest/leader bash /# pebble plan services: periodic-test: summary: Running tempest periodically ... ``` Change-Id: If703418af6eb059e3c15fadcb6fce234b3801659
This commit is contained in:
parent
c1d134943a
commit
6658845ebc
@ -91,7 +91,6 @@ class PebbleHandler(ops.framework.Object):
|
||||
"""Handle pebble ready event."""
|
||||
container = event.workload
|
||||
container.add_layer(self.service_name, self.get_layer(), combine=True)
|
||||
logger.debug(f"Plan: {container.get_plan()}")
|
||||
self.charm.configure_charm(event)
|
||||
|
||||
def write_config(
|
||||
|
Loading…
x
Reference in New Issue
Block a user