Coder Social home page Coder Social logo

Debug routes about warp HOT 4 CLOSED

seanmonstar avatar seanmonstar commented on May 4, 2024
Debug routes

from warp.

Comments (4)

seanmonstar avatar seanmonstar commented on May 4, 2024 3

If you enable logging (not even using the warp::log filter, just setting up a logger like pretty_env_logger and setting RUST_LOG=warp), you can see trace logs of filters trying to apply themselves.

I do think it'd be quite useful to be able to implement fmt::Debug for the filters, so you can print out a tree of what exists...

from warp.

matprec avatar matprec commented on May 4, 2024 1

I wasn't aware that warp uses log underneath, i found out when checking the source of warp::log. The output is really useful!

If something like a cookbook is planned, a section about debugging paths etc. would be really helpful :)

I might want to take a shot at the debug view: A list of possible paths with {:?} and a tree with the pretty printed debug view {:#?}

from warp.

algermissen avatar algermissen commented on May 4, 2024

Have you looked at the log filter? It does partially what you need:

let routes = api.with(warp::log("todos"));

from warp.

matprec avatar matprec commented on May 4, 2024

Haven't seen that one, thanks

from warp.

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.