diff options
| author | Niels van Velzen <nielsvanvelzen@users.noreply.github.com> | 2026-01-27 11:31:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-27 11:31:09 +0100 |
| commit | cf7150cd9d23b77feb7cc45dc4c9cb89e2491ede (patch) | |
| tree | c3f7fa9dcb003e0616bbcca89134a037e6fb871a /Emby.Server.Implementations/Session/SessionManager.cs | |
| parent | 360b6bcce1fc3f353ec23fa82ca415c3035b5710 (diff) | |
| parent | 3c77758b32b5e8ad6517728eb6a3fe25e498b272 (diff) | |
Merge pull request #15908 from jpds/playback-start-log
SessionManager: Log when playback is started
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Session/SessionManager.cs | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs index cf2ca047c..bbe23f8df 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/Emby.Server.Implementations/Session/SessionManager.cs @@ -793,6 +793,16 @@ namespace Emby.Server.Implementations.Session 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); // 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"; _logger.LogInformation( - "Playback stopped reported by app {0} {1} playing {2}. Stopped at {3} ms", - session.Client, - session.ApplicationVersion, + "User {0} stopped playback of '{1}' at {2}ms ({3} {4})", + session.UserName, info.Item.Name, - msString); + msString, + session.Client, + session.ApplicationVersion); } if (info.NowPlayingQueue is not null) |
