Skip to content
Snippets Groups Projects
Commit aaad6192 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Minor logging output changes.

parent e48af769
No related branches found
No related tags found
No related merge requests found
...@@ -271,7 +271,7 @@ namespace ATxCommon ...@@ -271,7 +271,7 @@ namespace ATxCommon
} }
} }
catch (Exception ex) { 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); sourceDir.FullName, destPath, ex.Message);
return false; return false;
} }
......
...@@ -454,7 +454,7 @@ namespace ATxService ...@@ -454,7 +454,7 @@ namespace ATxService
Log.Error("Unhandled exception in OnTimedEvent(): {0}\n\n" + Log.Error("Unhandled exception in OnTimedEvent(): {0}\n\n" +
"Trying exponential backoff, setting timer interval to {1} ms ({3}).\n\n" + "Trying exponential backoff, setting timer interval to {1} ms ({3}).\n\n" +
"StackTrace: {2}", ex.Message, _mainTimer.Interval, ex.StackTrace, "StackTrace: {2}", ex.Message, _mainTimer.Interval, ex.StackTrace,
TimeUtils.SecondsToHuman((long)_mainTimer.Interval / 1000)); TimeUtils.SecondsToHuman((long)_mainTimer.Interval / 1000, false));
} }
finally { finally {
// make sure to enable the timer again: // make sure to enable the timer again:
...@@ -730,12 +730,13 @@ namespace ATxService ...@@ -730,12 +730,13 @@ namespace ATxService
if (FsUtils.MoveAllSubDirs(userDir, targetDir)) if (FsUtils.MoveAllSubDirs(userDir, targetDir))
return; return;
errMsg = "unable to move " + userDir.FullName; errMsg = $"unable to move [{userDir.FullName}]";
} }
catch (Exception ex) { catch (Exception ex) {
errMsg = ex.Message; 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> /// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment