-
Notifications
You must be signed in to change notification settings - Fork 19
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
Messages are not logged in order #30
Labels
Comments
Yes, that's what async means. You're basically sending four log messages in parallel; first past the post wins, so to speak. If you want to sequence them, use callbacks or promisify and async/await them. |
I'm going to close this as answered. If there's reason to reopen, let me know. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using modern-syslog version 1.1.4, OS: Ubuntu 18.04.1 LTS.
The below program generates out-of-sync log messages:
The expected sequence is NOT always "1, 2, 3, 4", but rather a permutation of 1,2,3,4 (e.g., "1,4,2,3").
[I'm looking at /var/log/syslog]
Perhaps I'm missing something and when you mentioned "async" in the description this is what you meant but otherwise this is major.
The text was updated successfully, but these errors were encountered: