chore: simplify workflows and unify tool logging and mail presentation
This commit is contained in:
1 parent
f4d96de79e
commit
c93f2bf8b2
40 files changed
+523
-1515
No files matched your search
+2
-1
@@ -2,6 +2,7 @@ package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitea-mail-templates/tools/logging"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
@@ -69,7 +70,7 @@ func runDev(c *cli.Context) error {
|
||||
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)
|
||||
go func() {
|
||||
<-sigCh
|
||||
fmt.Println("\n\033[32m[I]\033[0m [Server] Shutting down")
|
||||
logging.Info("Server", "Shutting down")
|
||||
os.Exit(0)
|
||||
}()
|
||||
|
||||
|
||||
Reference in new issue
Block a user