This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-07
Channels
- # babashka (20)
- # beginners (72)
- # biff (7)
- # calva (15)
- # clj-kondo (36)
- # clj-on-windows (5)
- # cljs-dev (30)
- # clojure (27)
- # clojure-europe (2)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (2)
- # clojurescript (26)
- # conjure (14)
- # cursive (17)
- # events (1)
- # honeysql (5)
- # hyperfiddle (1)
- # leiningen (1)
- # off-topic (3)
- # reitit (5)
- # shadow-cljs (1)
- # xtdb (13)
OMG I got https://github.com/jmglov/blambda working with a deps layer. I shall blog about it later, but it was a fun rabbit hole to go down! 😉
I went the same route. I think it would be probably easier to use bb uberjar to pack deps and then use -cp on the bootstrap phase ;)
Ooh, good idea! I looked at Holy Lambda quite a bit to get some ideas on the tricky bits. I’ll probably just straight up copy your hacks.clj
. 😉
Sure, go for it!
Btw, wouldn't you like more to join forces?
Our goals are different, I would say. I'm mainly trying to learn how everything works and get something simple that works for my use cases. Holy Lambda looks more like an honest to goodness production ready system.
But yes, I'd definitely like to join forces in the sense of sharing info about how we solved problems with Babashka.
I'm still in the "move fast and break things but it's OK because I'm my only user" stage, so I'll probably rethink this once I accomplish my basic goals of having some lambdas working.
Oh yes, got you point. I’m moving all parts of babashka backend away from docker when I add option for pods download with different architecture directly in BB.
$ bb
Babashka v0.9.161 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require '[taoensso.timbre :as log])
nil
user=> (log/set-config! {:min-level :info})
Could not resolve symbol: log/set-config! [at <repl>]
Is taoensso.timbre/set-config!
not available or am I missing something here?You're right, this one is missing. PR welcome. For now you can use swap-config! https://github.com/babashka/babashka/blob/5823a08d51fa140fc13decccf5bc03d20bb33a38/feature-logging/babashka/impl/logging.clj#L126
FWIW, I’m currently doing https://github.com/clj-commons/etaoin/blob/a89c9a3ad1cfc6c5e0206c69ff0936ce51d139ce/script/bb_test_runner.clj#L5-L6:
;; default log level for bb is debug, change it to info
(alter-var-root #'taoensso.timbre/*config* #(assoc % :min-level :info))
Tagental, but related, is the default logging level really debug? Should it maybe be info?
Thanks, yeah, it seems to be debug: http://ptaoussanis.github.io/timbre/taoensso.timbre.html#var-default-config