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

Use error logging for admin notification.

Refers to #3
parent 8adba1b1
No related branches found
No related tags found
No related merge requests found
......@@ -121,11 +121,7 @@ namespace ATxCommon
username = (string)collection.Cast<ManagementBaseObject>().First()["UserName"];
}
catch (Exception ex) {
// TODO / FIXME: combine log and admin-email!
var msg = string.Format("Error in getCurrentUsername(): {0}", ex.Message);
Log.Error(msg);
// TODO: FIXME!
// SendAdminEmail(msg);
Log.Error("Error in getCurrentUsername(): {0}", ex.Message);
}
return username == "";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment