This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # 100-days-of-code (2)
- # announcements (1)
- # beginners (41)
- # boot (1)
- # calva (3)
- # cider (25)
- # cljdoc (20)
- # cljs-dev (24)
- # clojure (16)
- # clojure-conj (1)
- # clojure-dev (9)
- # clojure-germany (1)
- # clojure-italy (4)
- # clojure-uk (8)
- # clojurescript (25)
- # community-development (14)
- # cursive (4)
- # datascript (2)
- # datomic (20)
- # duct (16)
- # emacs (12)
- # fulcro (168)
- # graphql (1)
- # keechma (3)
- # leiningen (1)
- # luminus (5)
- # off-topic (13)
- # re-frame (8)
- # reagent (3)
- # rum (1)
- # shadow-cljs (24)
- # spacemacs (32)
- # unrepl (2)
- # vim (2)
for clojure code that throws using
ex-info how do people tend to differentiate different errors when matching with
I'm using hikari-cp with Postgresql and it's creating a ton of logs in my repl.. how can I change this?
@clarkenciel You can catch
clojure.lang.ExceptionInfo and then use
ex-data to get the payload and process it however you want.
With ring/jetty I use jetty-logging.properties file.. there must be an analog for postgres/jdbc?
We use Timbre and the adapters that route all the Java logging through Timbre, so we can control the logging level in one place.
I don't know what hikari-cp uses for logging... I suspect you're dealing with Java-level logging tho', rather than a Clojure issue 🙂
You might be able to put that level setting in
logging.properties rather than as a JVM option...
Meh, I switched from Google to Bing years ago and I actually find it to be way more accurate and useful than Google...
(I've been an Apple guy since the early 90's but lately I've been very impressed with MS and very not impressed with Apple -- I run Bing, Edge, Outlook, and Cortana on my iPhone 🙂 )
Really? I'll have to give Bing a go then.. I've tried using http://duckduckgo.com several times but always ended up going back to google
so for getting started in clojure on a mac again, is java 11 fully supported these days? or is that going to be a pain point? also does using the oracle jdk (https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html) vs openjdk (https://jdk.java.net/11/) make a significant difference? thx!
Is there any reason to choose
clj-http-lite if the latter has all the necessary features?
@djz If you're looking to use Java 11, you should read this https://blog.joda.org/2018/09/do-not-fall-into-oracles-java-11-trap.html
kind of a weird question - is there a way i can stash a value to inspect later in the repl? I have a ring request map (and afaik, no step-through debugger on the command line?), so it would be cool to somehow say "Store this value in that global name to inspect in the repl after the request"
yeah, awesome, thanks @dadair - i'd still kill for a step-through debugger in the repl though (like python's pdb)
There’s a library called scope-capture that might get you further along that direction