You are reading content from Scuttlebutt
@kas %UB0EQBuayQEUIdLrMYAEVXUmDAT2g30M0v0E7iFRgds=.sha256
Re: %BgwyyaBNo

As I run all my sbot instances with replicate.legacy=false I like this module.

However, the installation instructions didn't work for me: It created the file ~/.ssb/node_modules/ssb-ebt-only.js, but sbot complained that it couldn't find it.

I ended up renaming the file as ~/.ssb/node_modules/ssb-ebt-only/index.js, created a minimum package.json with one dependency only, pull-stream, ran npm install, edited the config and restarted sbot.

My only grief is that I now have even more stacktrace spam in my syslog:

Sep 17 08:57:58 zdani sbotd[3592]: ++Error: ---------------
Sep 17 08:57:58 zdani sbotd[3592]:     at Console.console.error (~/.ssb/node_modules/ssb-ooo/index.js:18:7)
Sep 17 08:57:58 zdani sbotd[3592]:     at ~/.ssb/node_modules/ssb-ebt-only/index.js:37:19
Sep 17 08:57:58 zdani sbotd[3592]:     at ~/.ssb/node_modules/ssb-ebt-only/node_modules/pull-stream/sinks/reduce.js:10:5
Sep 17 08:57:58 zdani sbotd[3592]:     at ~/.ssb/node_modules/ssb-ebt-only/node_modules/pull-stream/sinks/drain.js:20:24
Sep 17 08:57:58 zdani sbotd[3592]:     at ~/.ssb/node_modules/ssb-ebt-only/node_modules/pull-stream/throughs/take.js:30:13
Sep 17 08:57:58 zdani sbotd[3592]:     at PacketStreamSubstream.weird.read (~/.npm-global/lib/node_modules/scuttlebot/node_modules/muxrpc/pull-weird.js:33:7)
Sep 17 08:57:58 zdani sbotd[3592]:     at PacketStream._onstream (~/.npm-global/lib/node_modules/scuttlebot/node_modules/packet-stream/index.js:200:12)
Sep 17 08:57:58 zdani sbotd[3592]:     at PacketStream.write (~/.npm-global/lib/node_modules/scuttlebot/node_modules/packet-stream/index.js:135:41)
Sep 17 08:57:58 zdani sbotd[3592]:     at ~/.npm-global/lib/node_modules/scuttlebot/node_modules/muxrpc/pull-weird.js:56:15
Sep 17 08:57:58 zdani sbotd[3592]:     at ~/.npm-global/lib/node_modules/scuttlebot/node_modules/pull-stream/sinks/drain.js:24:37
Sep 17 08:57:58 zdani sbotd[3592]: [ebt-only]

Wouldn't it be possible to have just the error message and lose the stacktrace? I don't speak js, but the equivalent in python would be:

try:
    pull()
except Exception as e:
    print(e, file=sys.stderr)

(I have config.logging.level = "error";.)

Join Scuttlebutt now