From f1ded26b9f324559e7ad50acc3e03a917787342c Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Tue, 17 Dec 2024 01:28:12 +0100 Subject: [PATCH] properly log processes which still has open files after restart --- sau/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sau/services.py b/sau/services.py index ca21732..0094921 100644 --- a/sau/services.py +++ b/sau/services.py @@ -177,7 +177,7 @@ def restart_services(): if get_deleted_open_files(proc): service = services[proc_name] policy = _get_service_restart_policy(service) - _warn(policy, f'{proc} still has deleted files open') + log.warning(f'{proc} still has deleted files open') recommend_restart = True return recommend_restart