7
7
"os/signal"
8
8
"time"
9
9
10
- "github.com/changkun/gossafunc /src/config"
11
- "github.com/changkun/gossafunc /src/route"
10
+ "github.com/changkun/ssaplayground /src/config"
11
+ "github.com/changkun/ssaplayground /src/route"
12
12
"github.com/sirupsen/logrus"
13
13
)
14
14
@@ -29,23 +29,23 @@ func Run() {
29
29
signal .Notify (quit , os .Interrupt , os .Kill )
30
30
sig := <- quit
31
31
32
- logrus .Info ("gossaweb : service is stopped with signal: " , sig )
32
+ logrus .Info ("ssaplayground : service is stopped with signal: " , sig )
33
33
34
34
ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
35
35
if err := server .Shutdown (ctx ); err != nil {
36
- logrus .Errorf ("gossaweb : close gossaweb with error: %v" , err )
36
+ logrus .Errorf ("ssaplayground : close ssaplayground with error: %v" , err )
37
37
}
38
38
39
39
cancel ()
40
40
terminated <- true
41
41
}()
42
42
43
- logrus .Infof ("gossaweb : welcome to gossaweb service... http://%s/gossa" , config .Get ().Addr )
43
+ logrus .Infof ("ssaplayground : welcome to ssaplayground service... http://%s/gossa" , config .Get ().Addr )
44
44
err := server .ListenAndServe ()
45
45
if err != http .ErrServerClosed {
46
- logrus .Info ("gossaweb : launch with error: " , err )
46
+ logrus .Info ("ssaplayground : launch with error: " , err )
47
47
}
48
48
49
49
<- terminated
50
- logrus .Info ("gossaweb : service has terminated successfully, good bye!" )
50
+ logrus .Info ("ssaplayground : service has terminated successfully, good bye!" )
51
51
}
0 commit comments