mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-06 15:58:29 +01:00
Use Microsoft.Extensions.Logging abstraction
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using MediaBrowser.Model.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace MediaBrowser.Common.Events
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.ErrorException("Error in event handler", ex);
|
||||
logger.LogError("Error in event handler", ex);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -54,7 +54,7 @@ namespace MediaBrowser.Common.Events
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.ErrorException("Error in event handler", ex);
|
||||
logger.LogError("Error in event handler", ex);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -77,7 +77,7 @@ namespace MediaBrowser.Common.Events
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.ErrorException("Error in event handler", ex);
|
||||
logger.LogError("Error in event handler", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -100,7 +100,7 @@ namespace MediaBrowser.Common.Events
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.ErrorException("Error in event handler", ex);
|
||||
logger.LogError("Error in event handler", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user