Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
logstash-forwarder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
LaaS
logstash-forwarder
Commits
ded069c0
Commit
ded069c0
authored
Apr 13, 2013
by
Jordan Sissel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log when connecting
parent
b5522a4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/liblumberjack/publisher.go
src/liblumberjack/publisher.go
+1
-0
No files found.
src/liblumberjack/publisher.go
View file @
ded069c0
...
@@ -136,6 +136,7 @@ func (s *FFS) ensure_connect() {
...
@@ -136,6 +136,7 @@ func (s *FFS) ensure_connect() {
var
max
*
big
.
Int
=
big
.
NewInt
(
int64
(
len
(
s
.
Endpoints
)))
var
max
*
big
.
Int
=
big
.
NewInt
(
int64
(
len
(
s
.
Endpoints
)))
i
,
_
:=
rand
.
Int
(
rand
.
Reader
,
max
)
i
,
_
:=
rand
.
Int
(
rand
.
Reader
,
max
)
s
.
endpoint
=
s
.
Endpoints
[
i
.
Int64
()]
s
.
endpoint
=
s
.
Endpoints
[
i
.
Int64
()]
log
.
Printf
(
"Connecting to %s
\n
"
,
s
.
endpoint
)
err
:=
s
.
socket
.
Connect
(
s
.
endpoint
)
err
:=
s
.
socket
.
Connect
(
s
.
endpoint
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Printf
(
"%s: Error connecting: %s
\n
"
,
s
.
endpoint
,
err
)
log
.
Printf
(
"%s: Error connecting: %s
\n
"
,
s
.
endpoint
,
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment