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
jeffmcompsci
Title: Design and Build Great Web APIs - typo “https://company-atk.herokuapp.com/2258ie4t68jv” (page 19, third bullet in URL list) Typo:...
New
mikecargal
Title: Hands-on Rust: question about get_component (page 295) (feel free to respond. “You dug you’re own hole… good luck”) I have somet...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
JohnS
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps. With: ruby-3.0.0 s...
New
leba0495
Hello! Thanks for the great book. I was attempting the Trie (chap 17) exercises and for number 4 the solution provided for the autocorre...
New
jskubick
I’m running Android Studio “Arctic Fox” 2020.3.1 Patch 2, and I’m embarrassed to admit that I only made it to page 8 before running into ...
New
Henrai
Hi, I’m working on the Chapter 8 of the book. After I add add the point_offset, I’m still able to see acne: In the image above, I re...
New
gorkaio
root_layout: {PentoWeb.LayoutView, :root}, This results in the following following error: no “root” html template defined for PentoWeb...
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New

Other popular topics Top

malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1143 25883 760
New
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
New
PragmaticBookshelf
Author Spotlight: Tammy Coron @Paradox927 Gaming, and writing games in particular, is about passion, vision, experience, and immersio...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New

Sub Categories: