The work around should should be as simple as changing the 'tail -1 /var/log/juju/unit-{}.log' to 'grep -v juju.worker.leadership /var/log/juju/unit-{}.log | tail -1'
The work around should should be as simple as changing the 'tail -1 /var/log/ juju/unit- {}.log' to 'grep -v juju.worker. leadership /var/log/ juju/unit- {}.log | tail -1'