Coder Social home page Coder Social logo

Easier to debug faults about kit HOT 9 OPEN

alexec avatar alexec commented on August 17, 2024
Easier to debug faults

from kit.

Comments (9)

alexec avatar alexec commented on August 17, 2024 1

One idea would be to show all logs by default. Each line would be prefixed by the task name and the task status.

from kit.

alexec avatar alexec commented on August 17, 2024

After about 2h of experimentation the issue is still challenging. When your app is working just fine, you just want to see the fact it is fine. Yet once it is faulty, you want to see information that made it faulty.

from kit.

agilgur5 avatar agilgur5 commented on August 17, 2024

A general option to change in between the two modes -- muxed together and single log stream -- at any point during a task run would be helpful IMO. I prefer to look at one at a time, so the muxing actually confuses me, especially without prefixes or separate colors (like ktail or kubetail)

from kit.

alexec avatar alexec commented on August 17, 2024

To start in demux mode:

CI=1 kit ...

In v0.1.8+, switch while running press:

  • 0+Enter - normal (muxed mode)
  • 1+Enter - show error logs
  • 2+Enter - show warning+ logs
  • 3+Enter - show info+ logs
  • 4+Enter - show all logs

from kit.

agilgur5 avatar agilgur5 commented on August 17, 2024

Maybe I'm using the wrong terminology with "mux", sorry about that (I don't use tmux etc). I've seen the word "interleaved" used by some CLI tools which does describe what I meant, so maybe that's the right term.

As far as I understand, all the log level options still show logs from all concurrent tasks. Whereas seeing a single log stream from a single task is what I'm used to.

from kit.

alexec avatar alexec commented on August 17, 2024

ok, which task?

from kit.

agilgur5 avatar agilgur5 commented on August 17, 2024

It would be for any task that has dependencies. Being able to see an individual log stream instead of all of them together.

from kit.

alexec avatar alexec commented on August 17, 2024

Logs are always saved in logs/taskname.log. Could you tail that?

from kit.

agilgur5 avatar agilgur5 commented on August 17, 2024

Yes, I could. That's a workaround though, it would be great if something like that were built-in and I could switch between the modes as needed. Perhaps by using Ctrl+<some-key> or Cmd+<some-key> (which is a bit more familiar than the 1+Enter currently used for log levels)

You mentioned that in your opening comment:

What I actually do is have a second terminal open running tail -f. This is poor UX.

That's why I brought it up in this issue specifically

from kit.

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.