Git Product home page Git Product logo

Comments (5)

Dreamsorcerer avatar Dreamsorcerer commented on July 18, 2024

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.

Dreamsorcerer avatar Dreamsorcerer commented on July 18, 2024

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.

jmcaine avatar jmcaine commented on July 18, 2024

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.

Dreamsorcerer avatar Dreamsorcerer commented on July 18, 2024

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.

jmcaine avatar jmcaine commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.