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

Adjust log levels when checking processes and free space.

This way an email will be sent to an admin if configured so they have a
chance to check what's going on.
parent d3670da3
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,9 @@ namespace ATxCommon ...@@ -66,7 +66,9 @@ namespace ATxCommon
return dInfo.TotalFreeSpace; return dInfo.TotalFreeSpace;
} }
catch (Exception ex) { catch (Exception ex) {
Log.Warn("Error in GetFreeDriveSpace({0}): {1}", drive, ex.Message); // log this as an error which then also gets sent via email (if configured) and
// let the rate-limiter take care of not flooding the admin with mails:
Log.Error("Error in GetFreeDriveSpace({0}): {1}", drive, ex.Message);
} }
return 0; return 0;
...@@ -109,7 +111,7 @@ namespace ATxCommon ...@@ -109,7 +111,7 @@ namespace ATxCommon
} }
} }
catch (Exception ex) { catch (Exception ex) {
Log.Warn("Error in checkProcesses(): {0}", ex.Message); Log.Error("Error in checkProcesses(): {0}", ex.Message);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment