Skip to content

Commit 711e61e

Browse files
authored
updated log message (#3201)
1 parent d664fc6 commit 711e61e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Sentry/GlobalSessionManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ public IReadOnlyList<SessionUpdate> ResumeSession()
434434
{
435435
if (_currentSession is not { } session)
436436
{
437-
_options.LogDebug("Failed to report an error on a session because there is none active.");
437+
_options.LogDebug("There is no session active. Skipping updating the session as errored. " +
438+
"Consider setting 'AutoSessionTracking = true' to enable Release Health and crash free rate.");
438439
return null;
439440
}
440441

test/Sentry.Tests/GlobalSessionManagerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void ReportError_ActiveSessionDoesNotExist_LogsOutError()
159159

160160
// Assert
161161
_fixture.Logger.Entries.Should().Contain(e =>
162-
e.Message == "Failed to report an error on a session because there is none active." &&
162+
e.Message == "There is no session active. Skipping updating the session as errored. Consider setting 'AutoSessionTracking = true' to enable Release Health and crash free rate." &&
163163
e.Level == SentryLevel.Debug);
164164
}
165165

0 commit comments

Comments
 (0)