mnardell

mnardell

Web Development with Clojure 3rd - Shadow.cljs REPL receiving DEBUG logs (page 123)

In chapter 5, page 123 the reader of the book is instructed to start the Shadow.cljs REPL with:
$ npx shadow-cljs cljs-repl app

… upon entering that command from a terminal session (in the guestbook directory). the REPL seems to start correctly, however it becomes effectively unusable due to the repeated DEBUG level log message:

[XNIO-1 I/O-4] DEBUG io.undertow.websockets.core.request - UT025003: Decoding WebSocket Frame with opCode 1

Other than that I believe, everything seems to be running correctly. For example I can get a JS Alert to appear on the targeted browser by typing into the REPL
(js/alert "Hello")
The repeated DEBUG message makes it inconvenient working with the REPL, and I certainly would benefit from understanding how to properly configure the logging that I am seeing. I is not at al clear to me where I would find the logging configuration in the current set-up I have (I have followed the steps described in the book up to this point)

Thanks for any advice!

First Post!

mnardell

mnardell

I managed to find some online discussions related to this topic, connect the dots, and I found out where the logging levels are set in a Luminous project. One will find logback.xml configurations for dev, test, prod in the env/*/resources directories. Simply adding this xml element:
<logger name="io.undertow.websockets" level="warn" />
silences the undertow DEBUG messages and makes the Shadow.cljs REPL operable. For an example of the logback.xml , have a look at:

Of course this all seems obvious to me now, but I felt rather at loss when I made this post. I suppose that is the nature of learning.

Thanks!

Where Next?

Popular Pragmatic Bookshelf topics Top

iPaul
page 37 ANTLRInputStream input = new ANTLRInputStream(is); as of ANTLR 4 .8 should be: CharStream stream = CharStreams.fromStream(i...
New
mikecargal
Title: Hands-On Rust (Chap 8 (Adding a Heads Up Display) It looks like ​.with_simple_console_no_bg​(SCREEN_WIDTH*2, SCREEN_HEIGHT*2...
New
raul
Page 28: It implements io.ReaderAt on the store type. Sorry if it’s a dumb question but was the io.ReaderAt supposed to be io.ReadAt? ...
New
cro
I am working on the “Your Turn” for chapter one and building out the restart button talked about on page 27. It recommends looking into ...
New
Chrichton
Dear Sophie. I tried to do the “Authorization” exercise and have two questions: When trying to plug in an email-service, I found the ...
New
nicoatridge
Hi, I have just acquired Michael Fazio’s “Kotlin and Android Development” to learn about game programming for Android. I have a game in p...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
New
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New
redconfetti
Docker-Machine became part of the Docker Toolbox, which was deprecated in 2020, long after Docker Desktop supported Docker Engine nativel...
New

Other popular topics Top

DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
AstonJ
Just done a fresh install of macOS Big Sur and on installing Erlang I am getting: asdf install erlang 23.1.2 Configure failed. checking ...
New
AstonJ
In case anyone else is wondering why Ruby 3 doesn’t show when you do asdf list-all ruby :man_facepalming: do this first: asdf plugin-upd...
New
PragmaticBookshelf
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
DevotionGeo
The V Programming Language Simple language for building maintainable programs V is already mentioned couple of times in the forum, but I...
New
First poster: joeb
The File System Access API with Origin Private File System. WebKit supports new API that makes it possible for web apps to create, open,...
New
PragmaticBookshelf
Author Spotlight: Tammy Coron @Paradox927 Gaming, and writing games in particular, is about passion, vision, experience, and immersio...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New

Sub Categories: