mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
Cleaned up some code and adhered closer to the Microsoft code standards.
This commit is contained in:
@ -13,6 +13,11 @@ namespace IW4MAdmin
|
||||
{
|
||||
public void OnException(IScheduler scheduler, Exception e)
|
||||
{
|
||||
// it looks like there's a library error in
|
||||
// Kayak.Http.HttpServerTransactionDelegate.OnError
|
||||
if (e.GetType() == typeof(NullReferenceException))
|
||||
return;
|
||||
|
||||
Manager.GetInstance().Logger.WriteWarning("Web service has encountered an error - " + e.Message);
|
||||
Manager.GetInstance().Logger.WriteDebug($"Stack Trace: {e.StackTrace}");
|
||||
|
||||
@ -26,7 +31,7 @@ namespace IW4MAdmin
|
||||
|
||||
public void OnStop(IScheduler scheduler)
|
||||
{
|
||||
Manager.GetInstance().Logger.WriteDebug("Web service has been stopped...");
|
||||
Manager.GetInstance().Logger.WriteInfo("Web service has been stopped...");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user