Giter Site home page Giter Site logo

Comments (3)

mpounsett avatar mpounsett commented on July 28, 2024

This seems to be due to the fact that the Runtime object is using a StringIO object for the logging StreamHandler, which is attached to an Output object, which is handling both logging output and result output. Instead of building the output as each event happens, the Output object assembles it all at once at the end, and it puts result output ahead of all the logging.

I can see how this has some utility, despite being a bit counterintuitive. For one thing, it keeps a plugin running in verbose mode from violating the Nagios plugin API, so monitoring that is calling the plugin will still work.

I'm inclined to label this wontfix because of the API issue, but I'm open to discussion about it if you're still interested in seeing this change, @sbraz. Feel free to re-open the issue.

from nagiosplugin.

sbraz avatar sbraz commented on July 28, 2024

I'd almost forgotten I'd opened this issue. I can live with the current behaviour, it's just slightly strange :)

from nagiosplugin.

mpounsett avatar mpounsett commented on July 28, 2024

Yeah, a few things got a bit lost when I took over the project. I'm gradually whittling down these old issues. :)

from nagiosplugin.

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.