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