mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
refactor: Tidying
This commit is contained in:
parent
09445da1e9
commit
478261e888
1 changed files with 2 additions and 7 deletions
|
|
@ -171,16 +171,11 @@ namespace ICD.Common.Utils.Timers
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LogException(e);
|
||||
string message = string.Format("{0} failed to execute callback - {1}", GetType().Name, e.Message);
|
||||
ServiceProvider.TryGetService<ILoggerService>().AddEntry(eSeverity.Error, e, message);
|
||||
}
|
||||
}
|
||||
|
||||
private void LogException(Exception e)
|
||||
{
|
||||
string message = string.Format("{0} failed to execute callback - {1}", GetType().Name, e.Message);
|
||||
ServiceProvider.TryGetService<ILoggerService>().AddEntry(eSeverity.Error, e, message);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue