Git Product home page Git Product logo

loggen's People

Contributors

jimmy-lt avatar

Stargazers

 avatar  avatar

Watchers

 avatar

loggen's Issues

Message generation fails with multiple active tasks

Since we use a generator, when multiple active tasks are spawned message generation fails with the following:

$ loggen -N 2 127.0.0.1 Test                                                               
Exception in thread loggen-a0:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/loggen/loggen/__init__.py", line 420, in task_active
    for msg in buffer:
ValueError: generator already executing

Wait option is not taken into account

The delay parameter has been changed to delay startup of the active tasks in d486320. However the old delay parameter has been changed to wait but not into the task code.

for msg in buffer:
    [...]
    # FIXME: Still using delay instead of wait here.
    if delay > 0:
        time.sleep(delay / 1000)

Send raw log messages

Send a log message without any alteration. loggen should consider that given message is already a valid syslog message.

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.