(service_name: str)
| 2641 | import watchtower as _wtmod |
| 2642 | cfg = shared_data.config |
| 2643 | dirs = cfg.get('watchtower_dirs') or None |
| 2644 | try: |
| 2645 | maxa = int(cfg.get('watchtower_max_alerts', 500)) |
| 2646 | except (TypeError, ValueError): |
| 2647 | maxa = 500 |
| 2648 | wt = _wtmod.Watchtower(dirs=dirs, max_alerts=maxa, tail_only=True) |
| 2649 | try: |
| 2650 | with open(_wt_ring_path()) as f: |
no outgoing calls
no test coverage detected