Skip to content

Conversation

@buksy
Copy link

@buksy buksy commented Sep 27, 2014

Hi
I am very new to golang. So don't know if I have done something fundamentally wrong or utter useless change with this patch
I have made the sys logging to be done in a separate go routine thus (I think) eliminating the requirement to have a mutext on the Syslog function.
I /think this way of logging will be useful if you a running a REST API etc so that your app code (API request) will not wait on a mutext.

@blackjack
Copy link
Owner

It's really not an issue - mutex is only matters when simultaneously invoke syslog and openlog functions. Syslog function is guarded via read lock that should allow multiple threads call this function without locking.

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