pedestal

mkvlr 2018-12-18T08:12:15.109600Z

might I suggest again that it would be good to cut a pedestal release that’s compatible with Clojure 1.10 now that’s been released?

👍 3
➕ 2
mkvlr 2018-12-18T08:12:51.110200Z

in the meantime people that want to upgrade Clojure can use io.pedestal/pedestal.log {:git/url "<https://github.com/nextjournal/pedestal>" :sha "5ab1c9770472694f94d0835cda412ba753b28809"} if they’re using deps.edn

❤️ 1
souenzzo 2018-12-18T11:09:33.110800Z

@mkvlr you can also force a old version of core.specs org.clojure/core.specs.alpha {:mvn/version "0.2.36"}

2018-12-18T13:25:44.111500Z

Yep, I will work on cutting a release. Sorry about the delay!

👍 1
🙏 2
2018-12-18T19:32:01.116200Z

@mkvlr, I just cut a Pedestal release (`0.5.5`). I’ll posting release notes later but the TL;DR is that it’s a minor release driven by the io.pedestal.log/Clojure 1.10 incompatibility.

👍 1
👏 3
Joe Lane 2018-12-18T20:40:22.116700Z

Thank you!

donaldball 2018-12-18T21:42:24.119400Z

I’m using pedestal log and am looking to send e.g. a slack notification whenever an error is logged. I’m trying to decide between overriding the default logger and passing an explicit logger into all of my log calls. There are few different ways I can see to make this work, curious if anyone has done or seen something similar and can speak to their experience.

2018-12-18T21:57:32.125200Z

@donaldball, had the need to do that but I’d be careful conflating logging with Slack notifications, or third party integrations in general

2018-12-18T21:57:55.125600Z

But overriding the default logger seems like the cleaner way to do it

donaldball 2018-12-18T22:04:00.127200Z

Yeah, rate limiting and message size concerns are duly noted, but it’s a reasonable choice for this app

donaldball 2018-12-18T22:21:09.128200Z

The thing that seems most annoying about this route is that I only want to add a behavior, not replace the existing behavior, so I have to copy https://github.com/pedestal/pedestal/blob/master/log/src/io/pedestal/log.clj#L248-L249