Skip to content

Commit

Permalink
Enable info logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Oct 17, 2023
1 parent d25152d commit 00a86d5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ require (
github.com/coreos/go-systemd/v22 v22.5.0
github.com/dgraph-io/badger/v4 v4.2.0
github.com/dustin/go-humanize v1.0.0
github.com/ipfs-shipyard/nopfs v0.0.12-0.20231016145930-853ce79d9b97
github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231016145930-853ce79d9b97
github.com/ipfs-shipyard/nopfs v0.0.12-0.20231017180002-8e447c27631b
github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231017180002-8e447c27631b
github.com/ipfs/boxo v0.13.2-0.20231013160006-ef6adea52299
github.com/ipfs/go-cid v0.4.1
github.com/ipfs/go-datastore v0.6.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,12 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/ipfs-shipyard/nopfs v0.0.12-0.20231016145930-853ce79d9b97 h1:zK5+tjnusBotrFPYPI1rgOe5VIwJHpf3j131M1KAm3I=
github.com/ipfs-shipyard/nopfs v0.0.12-0.20231016145930-853ce79d9b97/go.mod h1:kuVnRVtaUO33/H05F/TH0pia1Pr/VW3DrFRGZGP4bpg=
github.com/ipfs-shipyard/nopfs v0.0.12-0.20231017180002-8e447c27631b h1:bco9XIJi5GIvwMUCcKI4tCKaqt4oDvQ7Sxf/qI5gkjw=
github.com/ipfs-shipyard/nopfs v0.0.12-0.20231017180002-8e447c27631b/go.mod h1:kuVnRVtaUO33/H05F/TH0pia1Pr/VW3DrFRGZGP4bpg=
github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231016145930-853ce79d9b97 h1:XHANeOLCEz9pTxUK6gtKAxuAjCoMZ8B2QLcKUQNgJUA=
github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231016145930-853ce79d9b97/go.mod h1:+hCrN49NLsrgas30m4xwqD6V8xPRl/I1ZMqy0iNEzUE=
github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231017180002-8e447c27631b h1:wcIAEoI+mDUNFp7/3vIXy4zVHUM8hdh/8soJ6Vo8pcU=
github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231017180002-8e447c27631b/go.mod h1:+hCrN49NLsrgas30m4xwqD6V8xPRl/I1ZMqy0iNEzUE=
github.com/ipfs/bbloom v0.0.4 h1:Gi+8EGJ2y5qiD5FbsbpX/TMNcJw8gSqr7eyjHa4Fhvs=
github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0=
github.com/ipfs/boxo v0.13.2-0.20231013160006-ef6adea52299 h1:WFpBlVbrvRyMzukb2TS+JPqrc8TkuILdGPoZoyX2na0=
Expand Down
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ const EnvKuboRPC = "KUBO_RPC_URL"

var goLog = logging.Logger("rainbow")

func init() {
logging.SetLogLevel("rainbow", "INFO")
logging.SetLogLevel("nopfs", "INFO")
}

func main() {
app := cli.NewApp()

Expand Down
5 changes: 4 additions & 1 deletion setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ func Setup(ctx context.Context, cfg Config) (*Node, error) {

var denylists []*nopfs.HTTPSubscriber
for _, dl := range cfg.DenylistSubs {
s := nopfs.NewHTTPSubscriber(dl, filepath.Join(cfg.DataDir, "denylists", filepath.Base(dl)), time.Minute)
s, err := nopfs.NewHTTPSubscriber(dl, filepath.Join(cfg.DataDir, "denylists", filepath.Base(dl)), time.Minute)
if err != nil {
return nil, err
}
denylists = append(denylists, s)
}

Expand Down

0 comments on commit 00a86d5

Please sign in to comment.