Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add log timeout #4

Merged
merged 1 commit into from

2 participants

@tcseke

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

Tamas Cseke 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
1b23005
@Vagabond Vagabond merged commit 8c086e3 into Vagabond:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2012
  1. Add log timeout

    Tamas Cseke authored
    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
This page is out of date. Refresh to see the latest.
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 %%%
Something went wrong with that request. Please try again.