Commit 676660f 1 parent 3ab239a commit 676660f Copy full SHA for 676660f
File tree 4 files changed +11
-8
lines changed
4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ brew install nakabonne/gosivy/gosivy
20
20
#### RHEL/CentOS
21
21
22
22
```
23
- rpm -ivh https://github.com/nakabonne/gosivy/releases/download/v0.1.1 /gosivy_0.1.1_linux_amd64 .rpm
23
+ rpm -ivh https://github.com/nakabonne/gosivy/releases/download/v0.2.0 /gosivy_0.2.0_linux_amd64 .rpm
24
24
```
25
25
26
26
#### Debian/Ubuntu
27
27
28
28
```
29
- wget https://github.com/nakabonne/gosivy/releases/download/v0.1.1 /gosivy_0.1.1_linux_amd64 .deb
30
- apt install ./gosivy_0.1.1_linux_amd64 .deb
29
+ wget https://github.com/nakabonne/gosivy/releases/download/v0.2.0 /gosivy_0.2.0_linux_amd64 .deb
30
+ apt install ./gosivy_0.2.0_linux_amd64 .deb
31
31
```
32
32
33
33
#### Go
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ type Options struct {
40
40
// By default "127.0.0.1:0" is populated.
41
41
Addr string
42
42
43
- // Where to emit the log to. By default os.Stderr is used.
43
+ // Where to emit the log to. By default ioutil.Discard is used.
44
44
LogWriter io.Writer
45
45
}
46
46
@@ -55,7 +55,7 @@ func Listen(opts Options) error {
55
55
defer mu .Unlock ()
56
56
logWriter = opts .LogWriter
57
57
if logWriter == nil {
58
- logWriter = os . Stderr
58
+ logWriter = ioutil . Discard
59
59
}
60
60
61
61
if pidFile != "" {
@@ -149,7 +149,6 @@ func listen() {
149
149
// handle keeps using the given connection until an issue occurred.
150
150
func handle (conn net.Conn ) error {
151
151
defer conn .Close ()
152
-
153
152
for {
154
153
conn .SetReadDeadline (time .Now ().Add (5 * time .Second ))
155
154
sig := make ([]byte , 1 )
Original file line number Diff line number Diff line change 1
- // Package diagnoser mainly provides two components, scraper and TUI
1
+ // Package diagnoser mainly provides two components, scraper and GUI
2
2
// for the process diagnosis.
3
3
package diagnoser
4
4
Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ package main
3
3
import (
4
4
"fmt"
5
5
"log"
6
+ "os"
6
7
"time"
7
8
8
9
"github.com/nakabonne/gosivy/agent"
9
10
)
10
11
11
12
func main () {
12
- if err := agent .Listen (agent.Options {}); err != nil {
13
+ err := agent .Listen (agent.Options {
14
+ LogWriter : os .Stdout ,
15
+ })
16
+ if err != nil {
13
17
log .Fatal (err )
14
18
}
15
19
defer agent .Close ()
You can’t perform that action at this time.
0 commit comments