File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ package death
3
3
//Manage the death of your application.
4
4
5
5
import (
6
- LOG "github.com/cihub/seelog"
7
6
"io"
8
7
"os"
9
8
"os/signal"
10
9
"reflect"
11
10
"sync"
12
11
"time"
12
+
13
+ LOG "github.com/cihub/seelog"
13
14
)
14
15
15
16
//Death manages the death of your application.
@@ -53,12 +54,12 @@ func NewDeath(signals ...os.Signal) (death *Death) {
53
54
return death
54
55
}
55
56
56
- //Override the time death is willing to wait for a objects to be closed.
57
+ //SetTimeout Overrides the time death is willing to wait for a objects to be closed.
57
58
func (d * Death ) SetTimeout (t time.Duration ) {
58
59
d .timeout = t
59
60
}
60
61
61
- //setLogger Override the default logger (seelog)
62
+ //SetLogger Overrides the default logger (seelog)
62
63
func (d * Death ) SetLogger (l Logger ) {
63
64
d .log = l
64
65
}
You can’t perform that action at this time.
0 commit comments