Skip to content

Commit 420343d

Browse files
committed
cmd/faraday: remove unnecessary logging
We only want to set up logging in one place so we print directly to stderr on startup error, the same way we do in all other projects.
1 parent fae9e63 commit 420343d

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

cmd/faraday/log.go

Lines changed: 0 additions & 36 deletions
This file was deleted.

cmd/faraday/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"fmt"
45
"os"
56

67
"github.com/lightninglabs/faraday"
@@ -10,7 +11,7 @@ import (
1011
// properly executed if os.Exit() is called.
1112
func main() {
1213
if err := faraday.Main(); err != nil {
13-
log.Infof("Error starting faraday: %v", err)
14+
_, _ = fmt.Fprintf(os.Stderr, "Error starting faraday: %v", err)
1415
}
1516

1617
os.Exit(1)

0 commit comments

Comments
 (0)