Code Monkey home page Code Monkey logo

Comments (4)

leeping avatar leeping commented on July 4, 2024

Hi Daniel,

Those changes were made around the time I reconfigured the geomeTRIC loggers to require an explicit newline character for every logging message, as I had some situations where I wanted finer control over whether newline characters were being printed or not.

I think replacing handlers=stream_handler with handlers= in line 12 of logJson.ini might also resolve the issue, though it disables printing to stdout when I run the unit tests.

Is there any way I could see the stdout from running the unit tests without duplicating the logging on your side? If you could just show me how to print out the string stream in the unit test codes, that should resolve it.

from geometric.

dgasmith avatar dgasmith commented on July 4, 2024

For running through the QCFractal pipeline, we would like all stdout to be contained within with stdout field. If you run the JSON test you can have a print(ret["stdout"]) or similar line. The way we had this previously (I believe) was that the run_json would temporarily remove the old handler which likely dumped to stdout and replace it with it with a handler that was based of StringIO and replace the old handle when complete.

You could consider an option on the run_json command to turn back on stdout stream printing while running tests.

from geometric.

leeping avatar leeping commented on July 4, 2024

Release 0.9.7.2 is now out, could you please check to see if it resolved our two logging issues (as well as the other connectivity-related issue in your PR)?

from geometric.

dgasmith avatar dgasmith commented on July 4, 2024

Perfect on our end! Thanks for the quick turnaround.

from geometric.

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.