Fork me on GitHub
#ring
<
2022-02-03
>
Franklin14:02:41

Hello 👋 I'm trying to get jetty to be a little more silent on logging

Franklin14:02:53

currently logs look like this

2022-02-03T14:34:43.808Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:558] - updateable 0
2022-02-03T14:34:43.808Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:558] - updateable 0
2022-02-03T14:34:43.808Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:587] - updates 1
2022-02-03T14:34:43.808Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:587] - updates 1
2022-02-03T14:34:43.808Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:592] - wakeup on updates [email protected]
2022-02-03T14:34:43.808Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:592] - wakeup on updates [email protected]
2022-02-03T14:34:43.809Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:605] - Selector [email protected] waiting with 0 keys
2022-02-03T14:34:43.809Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:605] - Selector [email protected] waiting with 0 keys
2022-02-03T14:34:43.809Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:194] - Selector [email protected] woken with none selected
2022-02-03T14:34:43.809Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:194] - Selector [email protected] woken with none selected
2022-02-03T14:34:43.809Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:612] - Selector [email protected] woken up from select, 0/0/0 selected
2022-02-03T14:34:43.809Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:612] - Selector [email protected] woken up from select, 0/0/0 selected
2022-02-03T14:34:43.810Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:628] - Selector [email protected] processing 0 keys, 1 updates
2022-02-03T14:34:43.810Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:628] - Selector [email protected] processing 0 keys, 1 updates
2022-02-03T14:34:43.810Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:558] - updateable 1
2022-02-03T14:34:43.810Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:558] - updateable 1
2022-02-03T14:34:43.810Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:567] - update [email protected]
2022-02-03T14:34:43.810Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:567] - update [email protected]
2022-02-03T14:34:43.811Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:587] - updates 0
2022-02-03T14:34:43.811Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:587] - updates 0
2022-02-03T14:34:43.811Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.AbstractLifeCycle:191] - STARTED @15402ms [email protected]{STARTED} id=2 keys=0 selected=0 updates=0
2022-02-03T14:34:43.811Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:605] - Selector [email protected] waiting with 0 keys
2022-02-03T14:34:43.811Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.AbstractLifeCycle:191] - STARTED @15402ms [email protected]{STARTED} id=2 keys=0 selected=0 updates=0
2022-02-03T14:34:43.811Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.io.ManagedSelector:605] - Selector [email protected] waiting with 0 keys
2022-02-03T14:34:43.811Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.AbstractLifeCycle:191] - STARTED @15402ms [email protected]@4c8be97f{HTTP/1.1, (http/1.1)}{0.0.0.0:3000}
2022-02-03T14:34:43.811Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.AbstractLifeCycle:191] - STARTED @15402ms [email protected]@4c8be97f{HTTP/1.1, (http/1.1)}{0.0.0.0:3000}
2022-02-03T14:34:43.812Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.ContainerLifeCycle:412] - [email protected]{HTTP/1.1, (http/1.1)}{0.0.0.0:3000} added {[email protected],POJO}
2022-02-03T14:34:43.812Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.ContainerLifeCycle:412] - [email protected]{HTTP/1.1, (http/1.1)}{0.0.0.0:3000} added {[email protected],POJO}
2022-02-03T14:34:43.813Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.thread.QueuedThreadPool:1033] - run [email protected] in QueuedThreadPool[qtp1235224286]@49a006de{STARTED,8<=8<=50,i=4,r=-1,q=0}[[email protected]{reserved=0/5,pending=0}]
2022-02-03T14:34:43.813Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.thread.QueuedThreadPool:720] - queue [email protected] startThread=0
2022-02-03T14:34:43.813Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.thread.QueuedThreadPool:1033] - run [email protected] in QueuedThreadPool[qtp1235224286]@49a006de{STARTED,8<=8<=50,i=4,r=-1,q=0}[[email protected]{reserved=0/5,pending=0}]
2022-02-03T14:34:43.813Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.thread.QueuedThreadPool:720] - queue [email protected] startThread=0
2022-02-03T14:34:43.813Z apiyo-ThinkPad-T14s-Gen-1 INFO [org.eclipse.jetty.server.AbstractConnector:331] - Started [email protected]{HTTP/1.1, (http/1.1)}{0.0.0.0:3000}
2022-02-03T14:34:43.813Z apiyo-ThinkPad-T14s-Gen-1 INFO [org.eclipse.jetty.server.AbstractConnector:331] - Started [email protected]{HTTP/1.1, (http/1.1)}{0.0.0.0:3000}
2022-02-03T14:34:43.814Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.AbstractLifeCycle:191] - STARTED @15405ms [email protected]{HTTP/1.1, (http/1.1)}{0.0.0.0:3000}
2022-02-03T14:34:43.814Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.AbstractLifeCycle:191] - STARTED @15405ms [email protected]{HTTP/1.1, (http/1.1)}{0.0.0.0:3000}
2022-02-03T14:34:43.814Z apiyo-ThinkPad-T14s-Gen-1 INFO [org.eclipse.jetty.server.Server:415] - Started @15406ms
2022-02-03T14:34:43.814Z apiyo-ThinkPad-T14s-Gen-1 INFO [org.eclipse.jetty.server.Server:415] - Started @15406ms
2022-02-03T14:34:43.815Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.AbstractLifeCycle:191] - STARTED @15406ms [email protected]{STARTED}[9.4.44.v20210927]
2022-02-03T14:34:43.815Z apiyo-ThinkPad-T14s-Gen-1 DEBUG [org.eclipse.jetty.util.component.AbstractLifeCycle:191] - STARTED @15406ms [email protected]{STARTED}[9.4.44.v20210927]

Franklin14:02:57

lots of debug

Franklin14:02:24

I have tried changing the *resources/jetty-logging.properties`* file to look as follows

Franklin14:02:35

org.eclipse.jetty.util.log.announce=false
org.eclipse.jetty.LEVEL=INFO
org.eclipse.jetty.websocket.LEVEL=INFO

Franklin14:02:53

I've also added this to my project.clj

:jvm-opts ^:replace ["-Xmx1g" "-Djava.awt.headless=true"
                       "-Dorg.eclipse.jetty.util.log.announce=false"
                       "-Dorg.eclipse.jetty.LEVEL=INFO"]

Franklin14:02:05

not certain why neither works

Franklin14:02:51

I'll appreciate any pointers on where to look, thanks