From 57ef64323fb4917f4f716af2726e4207094c7d1f Mon Sep 17 00:00:00 2001 From: frank Date: Wed, 5 Feb 2025 16:02:33 +0800 Subject: [PATCH] chore_: add comments for switchToPreLoginLog --- api/geth_backend.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/geth_backend.go b/api/geth_backend.go index 951f0d3167..32f987fafa 100644 --- a/api/geth_backend.go +++ b/api/geth_backend.go @@ -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 {