mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
Fix exception logging
This commit is contained in:
@@ -323,7 +323,7 @@ namespace Emby.Server.Implementations.Data
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogError("Error disposing database", ex);
|
||||
Logger.LogError(ex, "Error disposing database");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Emby.Server.Implementations.Data
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogError("Error loading database file. Will reset and retry.", ex);
|
||||
Logger.LogError(ex, "Error loading database file. Will reset and retry.");
|
||||
|
||||
FileSystem.DeleteFile(DbFilePath);
|
||||
|
||||
|
||||
@@ -1364,7 +1364,7 @@ namespace Emby.Server.Implementations.Data
|
||||
}
|
||||
catch (SerializationException ex)
|
||||
{
|
||||
Logger.LogError("Error deserializing item", ex);
|
||||
Logger.LogError(ex, "Error deserializing item");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Emby.Server.Implementations.Data
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogError("Error migrating users database", ex);
|
||||
Logger.LogError(ex, "Error migrating users database");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user