From f848218b5e1f731d81d46d130a1d4a8912031a84 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Thu, 2 May 2019 10:24:37 +0200 Subject: [PATCH] Show total number of expired directories in grace location Relates to #20 --- ATxCommon/StorageStatus.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ATxCommon/StorageStatus.cs b/ATxCommon/StorageStatus.cs index 4a3078c..a6342d9 100644 --- a/ATxCommon/StorageStatus.cs +++ b/ATxCommon/StorageStatus.cs @@ -186,8 +186,13 @@ namespace ATxCommon _lastUpdateGraceLocation = DateTime.Now; if (_expiredDirs.Count > 0) { - Log.Debug("Updated storage status: {0} expired directories in grace location.", - _expiredDirs.Count); + var detailCount = 0; + foreach (var toplevel in _expiredDirs.Keys) { + detailCount += _expiredDirs[toplevel].Count; + } + Log.Debug("Updated storage status: {0} top-level directories with a total of " + + "{1} expired sub-directories in grace location.", + _expiredDirs.Count, detailCount); } } -- GitLab