77 "os/signal"
88 "time"
99
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"
1212 "github.com/sirupsen/logrus"
1313)
1414
@@ -29,23 +29,23 @@ func Run() {
2929 signal .Notify (quit , os .Interrupt , os .Kill )
3030 sig := <- quit
3131
32- logrus .Info ("gossaweb : service is stopped with signal: " , sig )
32+ logrus .Info ("ssaplayground : service is stopped with signal: " , sig )
3333
3434 ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
3535 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 )
3737 }
3838
3939 cancel ()
4040 terminated <- true
4141 }()
4242
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 )
4444 err := server .ListenAndServe ()
4545 if err != http .ErrServerClosed {
46- logrus .Info ("gossaweb : launch with error: " , err )
46+ logrus .Info ("ssaplayground : launch with error: " , err )
4747 }
4848
4949 <- terminated
50- logrus .Info ("gossaweb : service has terminated successfully, good bye!" )
50+ logrus .Info ("ssaplayground : service has terminated successfully, good bye!" )
5151}
0 commit comments