mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-04 02:21:41 +02:00
Fixed some exception logging where exceptions weren't logged.
This commit is contained in:
parent
883dffca80
commit
79b3a22c9a
5 changed files with 4 additions and 6 deletions
|
|
@ -90,8 +90,6 @@ public static void Reload()
|
|||
LogManager.Configuration.Reload();
|
||||
LogManager.ReconfigExistingLoggers();
|
||||
sw.Stop();
|
||||
|
||||
Console.WriteLine("Reload: " + sw.Elapsed.TotalSeconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ public void DedicateToHost()
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.Fatal(e);
|
||||
Logger.FatalException("An error has occurred while dedicating to host.", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public static void Main(string[] args)
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.Fatal("An error has occurred while applying update.", e);
|
||||
logger.FatalException("An error has occurred while applying update package.", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public virtual void Start(string targetFolder)
|
|||
catch (Exception e)
|
||||
{
|
||||
RollBack(targetFolder);
|
||||
logger.Fatal("Failed to copy upgrade package to target folder.", e);
|
||||
logger.FatalException("Failed to copy upgrade package to target folder.", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ public static void AppDomainException(Exception excepion)
|
|||
}.Submit();
|
||||
}
|
||||
|
||||
Logger.Fatal("EPIC FAIL: {0}", excepion);
|
||||
Logger.FatalException("EPIC FAIL: {0}", excepion);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue