Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 334e064

Browse files
drwashocpacia
authored andcommitted
Merge remote-tracking branch 'origin/reenablestdout' into mobileFixesStdout
1 parent 159373a commit 334e064

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mobile/node.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type Node struct {
7070

7171
var (
7272
fileLogFormat = logging.MustStringFormatter(
73-
`%{time:2006-01-02 15:04:05.000} [%{level}] [%{module}/%{shortfunc}] %{message}`,
73+
`[Haven] %{time:2006-01-02 15:04:05.000} [%{level}] [%{module}/%{shortfunc}] %{message}`,
7474
)
7575
publishUnlocked = false
7676
mainLoggingBackend logging.Backend
@@ -122,7 +122,9 @@ func NewNodeWithConfig(config *NodeConfig, password string, mnemonic string) (*N
122122
}
123123
obFileBackend := logging.NewLogBackend(obLog, "", 0)
124124
obFileBackendFormatted := logging.NewBackendFormatter(obFileBackend, fileLogFormat)
125-
mainLoggingBackend = logging.SetBackend(obFileBackendFormatted)
125+
stdoutBackend := logging.NewLogBackend(os.Stdout, "", 0)
126+
stdoutBackendFormatted := logging.NewBackendFormatter(stdoutBackend, fileLogFormat)
127+
mainLoggingBackend = logging.SetBackend(obFileBackendFormatted, stdoutBackendFormatted)
126128
logging.SetLevel(logging.INFO, "")
127129

128130
sqliteDB, err := initializeRepo(config.RepoPath, "", "", true, time.Now(), wi.Bitcoin)

0 commit comments

Comments
 (0)