Compare commits

...

2 Commits

Author SHA1 Message Date
georgehao
4eba64c3fb feat: update 2023-12-13 10:41:04 +08:00
georgehao
9a60a6bf9c feat: update 2023-12-13 10:37:51 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ func LogSetup(ctx *cli.Context) error {
if logFile := ctx.String(LogFileFlag.Name); len(logFile) > 0 {
fp, err := os.OpenFile(filepath.Clean(logFile), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)
if err != nil {
utils.Fatalf("Failed to open log file", "err", err)
utils.Fatalf("Failed to open log file", "err", err)
}
if ctx.Bool(LogJSONFormat.Name) {
ostream = log.StreamHandler(io.Writer(fp), log.JSONFormat())

View File

@@ -3,5 +3,6 @@ package main
import "scroll-tech/coordinator/cmd/cron/app"
func main() {
app.Run()
}