Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

f/debugger #381

Merged
merged 13 commits into from
Feb 9, 2015
Merged

f/debugger #381

merged 13 commits into from
Feb 9, 2015

Conversation

bazsi
Copy link
Collaborator

@bazsi bazsi commented Feb 5, 2015

Albeit not entirely ready, this branch already contains a number of small improvements in various areas of syslog-ng that is already useful. (cfg-tree, logmpx, ...)

It also contains the initial work on the interactive debugger, which is just experimental at this point. Less tests than I would have liked, my excuse is that it's interactive code that is tricky to test :) I know it's a lame excuse though.

Anyway, it's better to integrate now, as it rots otherwise in its topic branch.

Please merge, if possible.
thanks

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
This was entirely unused, so get rid off that.

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
The log_source_post() function performs the initial house-keeping for
emitting a message from within a source. This was originally
part of log_source_queue() virtual method.

These are my reasons for extracting that to a separate function:
  - log_source_queue() was special, it couldn't call log_msg_drop() before
    the house keeping was done
  - the log_pipe_queue() wrapper couldn't drop the message either
  - this makes the call-sites a bit more difficult having to create
    their LogPathOptions instance, which is then basically ignored
  - this fixes a SIGABRT if the user drops/quits using the interactive
    debugger _before_ log_source_queue() was executed.

By separating this stuff into a separate log_source_post(), everything is
set up first, and then log_source_queue() is just a normal queue() function
without any kind of special treatment.

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
This is a preparatory patch that extracts the creation of LogPipe
instances that are automatically created during compilation and not
directly related to a configuration element.

This patch makes it possible to centralize code that works with this
set of LogPipes.

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
This function extracts LogMultiplexer creation into a separate function,
so that it can be used to centralize related code.

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
… to the LogExprNode

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
This patch implements a builtin configuration debugger.

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
lbudai added a commit that referenced this pull request Feb 9, 2015
@lbudai lbudai merged commit ccf9bb3 into master Feb 9, 2015
@lbudai lbudai removed the in progress label Feb 9, 2015
@bazsi bazsi deleted the f/debugger branch January 14, 2016 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants