GithubHelp home page GithubHelp logo

Comments (2)

JustinCappos avatar JustinCappos commented on August 12, 2024

How do we handle a program that does:

while True:
log('JUNK!\n')

On Tue, Aug 11, 2015 at 11:12 AM, aaaaalbert [email protected]
wrote:

repy.py currently takes two optional command-line arguments to control
certain aspects of logging, set by the nodemanager
https://github.com/SeattleTestbed/nodemanager/blob/master/nmAPI.py#L379-L388
when launching a sandbox:

This introduces complexity in the Repy sandbox, so that it imports the
proper logging libraries, finds log files, does log rotation, etc.

Instead, I think that the nodemanager should take care of this by
redirecting the sandbox's standard streams appropriately. The Repy sandbox
would get somewhat simpler; the nodemanager and sandbox separated more
clearly (see also SeattleTestbed/nodemanager#119
SeattleTestbed/nodemanager#119).

Furthermore, we could support much more easily other, non-Repy sandbox
types that were not built with setting up logging in mind, and have things
like seash's show log work transparently for them too.

What's your impression? Is this worthwhile?


Reply to this email directly or view it on GitHub
#103.

from repy_v2.

aaaaalbert avatar aaaaalbert commented on August 12, 2024

I'll assume we let this snippet run as a sandboxed program. Then, depending on how it is started,

The arg is usually only passed when the nodemanager starts the sandbox.

from repy_v2.

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.