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

Fixed many problems in sending messages #4

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

davidelang
Copy link
Contributor

A prior commit had changed the files array to a two-level array $file[fileid][tailinfo,productname]
This broke the File::Tail interface that was passed a reference to @file
so this change was reverted, the array @NAMEs was created to hold the product names, and @pending was created to hold the prior data for multi-line logs

many debug prints were put in, but they are all commented out.

In addition, loglog will now output any pending data when a new timeslice rolls around and there is no new data to send.

A prior commit had changed the files array to a two-level array $file[fileid][tailinfo,productname]
This broke the File::Tail interface that was passed a reference to @file
so this change was reverted, the array @NAMEs was created to hold the product names, and @pending was created to hold the prior data for multi-line logs

many debug prints were put in, but they are all commented out.

In addition, loglog will now output any pending data when a new timeslice rolls around and there is no new data to send.
@davidelang
Copy link
Contributor Author

canceled the pull request from the devel branch and issued a new one for the 'for-tom' branch

David Lang and others added 12 commits November 5, 2012 14:17
…a mode that will handle this gracefully and then find the file if it reappears.
… rather than continuing to wait and append more data to the line.

Also, fixed maxlength report to report the size of the log sent, not the size of the line.
…s to syslog.

This is intended to read from a named pipe.
…all ram if it could not split a long message properly, now it has multiple fallbacks

it trys to split on spaces, if there are no spaces it trys to split on tabs, if there are no tabs it trys to split on #015 (an escaped newline), and if that fails it splits on max log size
… controlled by the debug flag.

The debug flag is a bitmask, so 1 enables one set of prints, 2 enables a different set, 3 enables both
…ave a third column holding the hostname so that logs can be gathered on one server, but then sent out as if they were being sent from the system that created the log
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.

1 participant