Merge pull request #15908 from jpds/playback-start-log
SessionManager: Log when playback is started
This commit is contained in:
@@ -793,6 +793,16 @@ namespace Emby.Server.Implementations.Session
|
|||||||
PlaySessionId = info.PlaySessionId
|
PlaySessionId = info.PlaySessionId
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (info.Item is not null)
|
||||||
|
{
|
||||||
|
_logger.LogInformation(
|
||||||
|
"User {0} started playback of '{1}' ({2} {3})",
|
||||||
|
session.UserName,
|
||||||
|
info.Item.Name,
|
||||||
|
session.Client,
|
||||||
|
session.ApplicationVersion);
|
||||||
|
}
|
||||||
|
|
||||||
await _eventManager.PublishAsync(eventArgs).ConfigureAwait(false);
|
await _eventManager.PublishAsync(eventArgs).ConfigureAwait(false);
|
||||||
|
|
||||||
// Nothing to save here
|
// Nothing to save here
|
||||||
@@ -1060,11 +1070,12 @@ namespace Emby.Server.Implementations.Session
|
|||||||
var msString = info.PositionTicks.HasValue ? (info.PositionTicks.Value / 10000).ToString(CultureInfo.InvariantCulture) : "unknown";
|
var msString = info.PositionTicks.HasValue ? (info.PositionTicks.Value / 10000).ToString(CultureInfo.InvariantCulture) : "unknown";
|
||||||
|
|
||||||
_logger.LogInformation(
|
_logger.LogInformation(
|
||||||
"Playback stopped reported by app {0} {1} playing {2}. Stopped at {3} ms",
|
"User {0} stopped playback of '{1}' at {2}ms ({3} {4})",
|
||||||
session.Client,
|
session.UserName,
|
||||||
session.ApplicationVersion,
|
|
||||||
info.Item.Name,
|
info.Item.Name,
|
||||||
msString);
|
msString,
|
||||||
|
session.Client,
|
||||||
|
session.ApplicationVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.NowPlayingQueue is not null)
|
if (info.NowPlayingQueue is not null)
|
||||||
|
|||||||
Reference in New Issue
Block a user