Skip to content

print debug messages for galaxy.tools.actions#1165

Merged
mvdbeek merged 3 commits intogalaxyproject:masterfrom
bernt-matthias:topic/tools-actions-logging
Jun 1, 2021
Merged

print debug messages for galaxy.tools.actions#1165
mvdbeek merged 3 commits intogalaxyproject:masterfrom
bernt-matthias:topic/tools-actions-logging

Conversation

@bernt-matthias
Copy link
Collaborator

in order to see output filter errors

also set level to WARN for urllib3 to ignore messages like

2021-04-29 12:00:19,558 DEBUG [urllib3.connectionpool] http://127.0.0.1:9925 "GET /api/jobs/54f2a3a23292eb07 HTTP/1.1" 200 None
2021-04-29 12:00:19,821 DEBUG [urllib3.connectionpool] Starting new HTTP connection (1): 127.0.0.1:9925

which are flooding the logs

I still see

INFO:     127.0.0.1:35964 - "POST /api/tools HTTP/1.1" 200 OK

but have no idea where this is coming from. Is there a way to address logging for all modules but a certain set (i.e. set warn for all modules but galaxy and planemo)?

in order to see output filter errors

also set level to WARN for urllib3 to ignore messages like

```
2021-04-29 12:00:19,558 DEBUG [urllib3.connectionpool] http://127.0.0.1:9925 "GET /api/jobs/54f2a3a23292eb07 HTTP/1.1" 200 None
2021-04-29 12:00:19,821 DEBUG [urllib3.connectionpool] Starting new HTTP connection (1): 127.0.0.1:9925
```

which are flooding the logs
@mvdbeek
Copy link
Member

mvdbeek commented Apr 29, 2021

but have no idea where this is coming from.

This is uvicorn's access logging ... I looked into how we can turn this off, but I didn't see something that would work at first glance.

@bernt-matthias
Copy link
Collaborator Author

Wondering why the urllib messages were still shown (galaxyproject/galaxy#11266)?

@bernt-matthias
Copy link
Collaborator Author

This is uvicorn's access logging ... I looked into how we can turn this off, but I didn't see something that would work at first glance.

I think I found a way: galaxyproject/galaxy@e9b08f3

If we like we can also have more control over the uvicorns logging config https://github.com/encode/uvicorn/blob/bf1c64e2c141971c546671c7dc91b8ccf0afeb7d/uvicorn/config.py#L131 ... e.g. the formater.

@mvdbeek
Copy link
Member

mvdbeek commented Jun 1, 2021

Nice! Thanks a lot @bernt-matthias!

@mvdbeek mvdbeek merged commit f668eb8 into galaxyproject:master Jun 1, 2021
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.

2 participants