You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because in modern-syslog log() is async (it's right there in the description but doesn't specify that the other methods are still sync).
In your snippet close() runs earlier than log().
If you want to filter your logs into different directions you could use LOCAL0 to LOCAL7 instead of open/close spam:
I have the following test program.
When I run it, I get the following line in my Syslog:
I was expecting the string "myident" instead of "node".
When I do the same from the Bash,
it works fine:
The text was updated successfully, but these errors were encountered: