Skip to content

Commit

Permalink
chore_: add comments for switchToPreLoginLog
Browse files Browse the repository at this point in the history
  • Loading branch information
qfrank committed Feb 5, 2025
1 parent 34fb976 commit 57ef643
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/geth_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -2587,6 +2587,10 @@ func (b *GethStatusBackend) Logout() error {
return nil
}

// switchToPreLoginLog switches to global pre-login logging settings.
// This log is profile-independent and should be enabled by default,
// including in release builds, to help diagnose login issues.
// related issue: https://github.com/status-im/status-mobile/issues/21501
func (b *GethStatusBackend) switchToPreLoginLog() error {
err := logutils.ZapLogger().Sync()
if err != nil {
Expand Down

0 comments on commit 57ef643

Please sign in to comment.