Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use more verbose logging for development #1081

Merged
merged 1 commit into from
Nov 26, 2023
Merged

Conversation

ljdelight
Copy link
Contributor

@ljdelight ljdelight commented Nov 26, 2023

Show more useful logging when developing:

21:24:16,183 [trace] [application-akka.actor.default-dispatcher-21] p.a.mvc.Action.$anonfun$apply$4(Action.scala:81) - Invoking action with request: GET /api/v2/data/challenge/474?includeByPriority=true
21:24:16,199 [trace] [application-akka.actor.default-dispatcher-23] p.a.mvc.Action.$anonfun$apply$4(Action.scala:81) - Invoking action with request: GET /api/v2/challenge/474
21:24:26,229 [trace] [application-akka.actor.default-dispatcher-23] p.a.mvc.Action.$anonfun$apply$4(Action.scala:81) - Invoking action with request: GET /api/v2/data/challenge/474?includeByPriority=true
21:24:26,244 [trace] [application-akka.actor.default-dispatcher-23] p.a.mvc.Action.$anonfun$apply$4(Action.scala:81) - Invoking action with request: GET /api/v2/challenge/474
21:24:26,345 [trace] [application-akka.actor.default-dispatcher-23] p.a.mvc.Action.$anonfun$apply$4(Action.scala:81) - Invoking action with request: GET /api/v2/data/challenge/474?includeByPriority=true&invf=&mrStatus=0%2C1%2C2%2C3%2C5%2C6%2C7%2C-2%2C-1&priorities=0%2C1%2C2&tStatus=0%2C1%2C2%2C3%2C4%2C5%2C6%2C9&trStatus=0%2C1%2C2%2C3%2C4%2C5%2C6%2C7%2C-1
21:24:26,358 [trace] [application-akka.actor.default-dispatcher-23] p.a.mvc.Action.$anonfun$apply$4(Action.scala:81) - Invoking action with request: GET /api/v2/data/challenge/474/propertyKeys
21:24:26,474 [trace] [application-akka.actor.default-dispatcher-23] p.a.mvc.Action.$anonfun$apply$4(Action.scala:81) - Invoking action with request: PUT /api/v2/challenge/474/rebuild?removeUnmatched=false&skipSnapshot=true
21:24:26,485 [debug] [scala-execution-context-global-43772] o.m.p.ChallengeProvider.$anonfun$buildTasks$2(ChallengeProvider.scala:56) - Creating tasks for overpass query: [out:json][timeout:25];
area[name="Wichita"]->.ICT;
(
  //node["highway"~"^(primary|secondary)$"][!"maxspeed"](area.ICT);
  way["highway"~"^(primary|secondary)$"][!"maxspeed"](area.ICT);
  //relation["highway"~"^(primary|secondary)$"][!"maxspeed"](area.ICT);
);
out qt ids geom;
21:24:26,492 [trace] [application-akka.actor.default-dispatcher-21] p.a.mvc.Action.$anonfun$apply$4(Action.scala:81) - Invoking action with request: GET /api/v2/challenge/474

...

21:24:30,192 [debug] [AsyncHttpClient-3-1] p.s.a.o.a.n.h.HttpHandler.handleHttpResponse(HttpHandler.java:71) - 

Request DefaultFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(freed))
POST /api/interpreter HTTP/1.1
content-type: text/plain; charset=UTF-8
content-length: 278
host: overpass-api.de
accept: */*
user-agent: MapRoulette

Response DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
HTTP/1.1 200 OK
Date: Sun, 26 Nov 2023 03:24:27 GMT
Server: Apache/2.4.56 (Debian)
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: application/json

21:24:30,731 [debug] [AsyncHttpClient-3-1] p.s.a.o.a.n.c.ChannelManager.tryToOfferChannelToPool(ChannelManager.java:268) - Adding key: https://overpass-api.de:443 for channel [id: 0xabb7007b, L:/10.10.0.82:44106 - R:overpass-api.de/162.55.144.139:443]
21:24:31,738 [debug] [AsyncHttpClient-timer-1-1] p.s.a.o.a.n.c.DefaultChannelPool$IdleChannelDetector.run(DefaultChannelPool.java:348) - Entry count for : https://overpass-api.de:443 : 1
21:24:32,837 [debug] [AsyncHttpClient-timer-1-1] p.s.a.o.a.n.c.DefaultChannelPool$IdleChannelDetector.run(DefaultChannelPool.java:348) - Entry count for : https://overpass-api.de:443 : 1
21:24:33,937 [debug] [AsyncHttpClient-timer-1-1] p.s.a.o.a.n.c.DefaultChannelPool$IdleChannelDetector.run(DefaultChannelPool.java:348) - Entry count for : https://overpass-api.de:443 : 1
21:24:35,037 [debug] [AsyncHttpClient-timer-1-1] p.s.a.o.a.n.c.DefaultChannelPool$IdleChannelDetector.run(DefaultChannelPool.java:348) - Entry count for : https://overpass-api.de:443 : 1

Copy link

sonarcloud bot commented Nov 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ljdelight ljdelight merged commit 4c94f34 into main Nov 26, 2023
7 checks passed
@ljdelight ljdelight deleted the ljdelight/updateDevConf branch November 26, 2023 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant