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

New
johnp
Running the examples in chapter 5 c under pytest 5.4.1 causes an AttributeError: ‘module’ object has no attribute ‘config’. In particula...
New
yulkin
your book suggests to use Image.toByteData() to convert image to bytes, however I get the following error: "the getter ‘toByteData’ isn’t...
New
sdmoralesma
Title: Web Development with Clojure, Third Edition - migrations/create not working: p159 When I execute the command: user=&gt; (create-...
New
edruder
I thought that there might be interest in using the book with Rails 6.1 and Ruby 2.7.2. I’ll note what I needed to do differently here. ...
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
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
New
jskubick
I think I might have found a problem involving SwitchCompat, thumbTint, and trackTint. As entered, the SwitchCompat changes color to hol...
New
tkhobbes
After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
New
dachristenson
@mfazio23 Android Studio will not accept anything I do when trying to use the Transformations class, as described on pp. 140-141. Googl...
New

Other popular topics Top

dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
Exadra37
On modern versions of macOS, you simply can’t power on your computer, launch a text editor or eBook reader, and write or read, without a ...
New
AstonJ
If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
New
gagan7995
API 4 Path: /user/following/ Method: GET Description: Returns the list of all names of people whom the user follows Response [ { ...
New
rustkas
Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
Help
I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
New
PragmaticBookshelf
Author Spotlight Rebecca Skinner @RebeccaSkinner Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
New
PragmaticBookshelf
Author Spotlight: Tammy Coron @Paradox927 Gaming, and writing games in particular, is about passion, vision, experience, and immersio...
New
PragmaticBookshelf
Author Spotlight: Sophie DeBenedetto @SophieDeBenedetto The days of the traditional request-response web application are long gone, b...
New

Sub Categories: