Skip to content
Browse files

Merge pull request #4 from tcseke/log-timeout

Add log timeout
  • Loading branch information...
2 parents 69ea924 + 1b23005 commit 8c086e3c20e2f13a4dc7fb5b4e249d56e7ac64e7 @Vagabond committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/syslog.erl
View
5 src/syslog.erl
@@ -33,7 +33,8 @@
start/0,
start_link/0,
open/3,
- log/2
+ log/2,
+ log/3
]).
% gen_server callbacks
@@ -63,6 +64,8 @@ open(Ident, Logopt, Facility) ->
log(Priority, Message) ->
gen_server:call(?MODULE, {log, priorities(Priority), Message}).
+log(Priority, Message, Timeout) ->
+ gen_server:call(?MODULE, {log, priorities(Priority), Message}, Timeout).
%%% API %%%

0 comments on commit 8c086e3

Please sign in to comment.
Something went wrong with that request. Please try again.