diff --git a/ATxCommon/FsUtils.cs b/ATxCommon/FsUtils.cs index 287669f90b2ee51acf2ee48839f6a4b47bf7964b..a5ac9a2a79b34066f983d2f084c0826b010def94 100644 --- a/ATxCommon/FsUtils.cs +++ b/ATxCommon/FsUtils.cs @@ -271,7 +271,7 @@ namespace ATxCommon } } catch (Exception ex) { - Log.Error("Error moving directories: [{0}] > [{1}]\n{2}", + Log.Error("Error moving directories: [{0}] -> [{1}]: {2}", sourceDir.FullName, destPath, ex.Message); return false; } diff --git a/ATxService/AutoTx.cs b/ATxService/AutoTx.cs index cc45cd1d79d1eca60f9fd3b11c62a687cf18ce16..231035dfce48510d8f4e2ab05941c813fed94036 100644 --- a/ATxService/AutoTx.cs +++ b/ATxService/AutoTx.cs @@ -454,7 +454,7 @@ namespace ATxService Log.Error("Unhandled exception in OnTimedEvent(): {0}\n\n" + "Trying exponential backoff, setting timer interval to {1} ms ({3}).\n\n" + "StackTrace: {2}", ex.Message, _mainTimer.Interval, ex.StackTrace, - TimeUtils.SecondsToHuman((long)_mainTimer.Interval / 1000)); + TimeUtils.SecondsToHuman((long)_mainTimer.Interval / 1000, false)); } finally { // make sure to enable the timer again: @@ -730,12 +730,13 @@ namespace ATxService if (FsUtils.MoveAllSubDirs(userDir, targetDir)) return; - errMsg = "unable to move " + userDir.FullName; + errMsg = $"unable to move [{userDir.FullName}]"; } catch (Exception ex) { errMsg = ex.Message; } - Log.Error("MoveToManagedLocation({0}) failed: {1}", userDir.FullName, errMsg); + Log.Error("=== Moving directory [{0}] to the processing location failed: {1} ===", + userDir.FullName, errMsg); } /// <summary>