mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:57:23 +01:00
adjust download manager initialization and some error logging
This commit is contained in:
parent
45ddf7b977
commit
f18493d7ee
3 changed files with 9 additions and 4 deletions
|
|
@ -124,6 +124,8 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
|
|||
}
|
||||
});
|
||||
|
||||
_downloadManager.Initialize();
|
||||
|
||||
Logger.LogDebug("Initializing Player {obj}", this);
|
||||
}
|
||||
|
||||
|
|
@ -184,7 +186,7 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
|
|||
}
|
||||
catch (InvalidOperationException ex)
|
||||
{
|
||||
Logger.LogWarning("Failed disposing player (not present anymore?)", ex);
|
||||
Logger.LogWarning(ex, "Failed disposing player (not present anymore?)");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -459,7 +461,7 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogInformation("[{applicationId}] Cancelled, reason: {msg}", _applicationId, ex.Message);
|
||||
Logger.LogWarning(ex, "[{applicationId}] Cancelled", _applicationId);
|
||||
}
|
||||
}, token);
|
||||
}, downloadToken);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue