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

jon
Some minor things in the paper edition that says “3 2020” on the title page verso, not mentioned in the book’s errata online: p. 186 But...
New
Alexandr
Hi everyone! There is an error on the page 71 in the book “Programming machine learning from coding to depp learning” P. Perrotta. You c...
New
raul
Hi Travis! Thank you for the cool book! :slight_smile: I made a list of issues and thought I could post them chapter by chapter. I’m rev...
New
adamwoolhether
When trying to generate the protobuf .go file, I receive this error: Unknown flag: --go_opt libprotoc 3.12.3 MacOS 11.3.1 Googling ...
New
leonW
I ran this command after installing the sample application: $ cards add do something --owner Brian And got a file not found error: Fil...
New
brunogirin
When trying to run tox in parallel as explained on page 151, I got the following error: tox: error: argument -p/–parallel: expected one...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
Keton
When running the program in chapter 8, “Implementing Combat”, the printout Health before attack was never printed so I assumed something ...
New
davetron5000
Hello faithful readers! If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
New
dachristenson
I just bought this book to learn about Android development, and I’m already running into a major issue in Ch. 1, p. 20: “Update activity...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
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
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New

Sub Categories: