Comments (5)
Maybe we can do something to make it easier to customise, feel free to come up with some suggestions.
But, the logger you are complaining about is aiohttp.access
. It also only outputs all those details on a non-successful response (note the 404 in your output), which is generally very useful to see in the terminal while developing.
You can see in the code, that we install a custom formatter for aiohttp:
https://github.com/aio-libs/aiohttp-devtools/blob/master/aiohttp_devtools/logs.py#L127
And set the aiohttp_access log level to DEBUG or INFO:
https://github.com/aio-libs/aiohttp-devtools/blob/master/aiohttp_devtools/logs.py#L146
from aiohttp-devtools.
Maybe we can just change that log_level
variable. In other projects I've used -v
and -q
as a count variable, so the log level is something like 20 - (10 * v) + (10 * q). That way you can just make it critical with -qqq
or ensure everything is logged with -vv
.
from aiohttp-devtools.
I see. Thank you; knowing that it's aiohttp.access is helpful. The verbosity is debatable, and not a big problem for me (especially since I can throttle it now), but the first three lines in my above snippet (and often more lines than that) were malformed and caused weird color-changes in the terminal output. again:
[05:56:38]
tyle.resetm ●
tyle.resetm GET / 200 20.6KB 22ms
tyle.resetm
That's the bit that seemed "broken". I say "were" and "seemed" because, since I figured out how to turn this off long ago, I haven't encountered it again. It may also be that somebody fixed something. But I thought I'd finally close this out, one way or another. If you'd like me to try to reproduce this anew, I'll be happy to give it a shot. If you're pretty sure that's a "known" and historic issue, I won't go to any trouble.
Thanks again. Sorry for the delayed response.
from aiohttp-devtools.
There has been no new release in that time, so I don't think anything should have changed.
Some minor formatting issues are probably not something I'm going to be bothered about exploring, but if someone decides to investigate and provide a fix, we'll certainly accept it.
from aiohttp-devtools.
Totally understandable. Thank you for your attention to it. I'll close it, with this. And if I get time, I'll look into it further and maybe offer a fix.
from aiohttp-devtools.
Related Issues (20)
- [feature-request] Adding additional parameters HOT 2
- Reload on additional file changes HOT 2
- No graceful shutdown when CTRL-C HOT 3
- Auto reload get triggered by Emacs tmp files HOT 2
- Incorrect behavior if __name__ == '__main__': sys.exit(main()) HOT 2
- Remove/enable --boxed
- As of 3.10, the *loop* parameter was removed from Event HOT 2
- Not working with python 3.10 version HOT 2
- v1.0 broken (missing JS)
- How do I use aiohttp-devtools with the PyCharm debugger? HOT 2
- runserver doesn't respect host setting HOT 3
- async_generator object has no attribute lock HOT 3
- Looking to wrong server to find static files. HOT 2
- Cleanup context is not always run HOT 7
- Cleanup context is not run on reload on Windows HOT 17
- Host setting not respected HOT 2
- Tests leave python processes and an open port behind
- Let's put `aiohttp-devtools` under the `aio-libs` org on PyPI HOT 5
- Import module order issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiohttp-devtools.