Skip to content
Browse files

Add log timeout

The default (5000) timeout of gen_server was not enough
Maybe due to network or port driver issues
I'd like to specify higher timeout value
  • Loading branch information...
1 parent 2a301dd commit 1b23005be74b189bcbeca57d6bd29577d84d34ac Tamas Cseke committed Nov 5, 2012
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 1b23005

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