mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 00:32:57 -07:00
moar logs #1643
This commit is contained in:
parent
03445937db
commit
005739fe46
1 changed files with 10 additions and 0 deletions
10
src/Ombi/Controllers/External/PlexController.cs
vendored
10
src/Ombi/Controllers/External/PlexController.cs
vendored
|
@ -41,6 +41,10 @@ namespace Ombi.Controllers.External
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public async Task<PlexAuthentication> SignIn([FromBody] UserRequest request)
|
public async Task<PlexAuthentication> SignIn([FromBody] UserRequest request)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
// Do we already have settings?
|
// Do we already have settings?
|
||||||
_log.LogDebug("OK, signing into Plex");
|
_log.LogDebug("OK, signing into Plex");
|
||||||
var settings = await PlexSettings.GetSettingsAsync();
|
var settings = await PlexSettings.GetSettingsAsync();
|
||||||
|
@ -83,6 +87,12 @@ namespace Ombi.Controllers.External
|
||||||
_log.LogDebug("Finished");
|
_log.LogDebug("Finished");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
_log.LogCritical(e, "Error when trying to sign into Plex.tv");
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the plex libraries.
|
/// Gets the plex libraries.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue