diff --git a/go.mod b/go.mod index c564f8e..a55d91a 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 6dc203f..10e3ea7 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/main.go b/main.go index 03d9a89..eeda11c 100644 --- a/main.go +++ b/main.go @@ -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() diff --git a/setup.go b/setup.go index a647aab..7409520 100644 --- a/setup.go +++ b/setup.go @@ -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) }