aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2025-12-31 14:30:25 +0000
committerJonathan Davies <jpds@protonmail.com>2025-12-31 15:01:50 +0000
commitb564a43d9c81a5cc032a2def2ab2aac44215a398 (patch)
tree62c37e6831af7b961aefcd2e5d77a74b93a75609 /Emby.Server.Implementations/Session
parentf08657ab27c2f7db1200a83fa62c3c0aa6b12f67 (diff)
SessionManager: Log usernames in playback messages
Diffstat (limited to 'Emby.Server.Implementations/Session')
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index f52e0f6c6..7109f3e4f 100644
--- a/Emby.Server.Implementations/Session/SessionManager.cs
+++ b/Emby.Server.Implementations/Session/SessionManager.cs
@@ -796,7 +796,8 @@ namespace Emby.Server.Implementations.Session
if (info.Item is not null)
{
_logger.LogInformation(
- "Playback started reported by app {0} {1} playing {2}",
+ "Playback started for user {0} reported by app {1} {2} playing {3}",
+ session.UserName,
session.Client,
session.ApplicationVersion,
info.Item.Name);
@@ -1069,7 +1070,8 @@ 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",
+ "Playback stopped for user {0} reported by app {1} {2} playing {3}. Stopped at {4} ms",
+ session.UserName,
session.Client,
session.ApplicationVersion,
info.Item.Name,