Skip to content

Commit

Permalink
update: error log
Browse files Browse the repository at this point in the history
  • Loading branch information
hareku committed Oct 25, 2024
1 parent 5341973 commit 7c7d90a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/fanbox-dl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"context"
"fmt"
"log"
"log/slog"
"os"
"os/signal"
Expand Down Expand Up @@ -196,11 +195,8 @@ var app = &cli.App{

func main() {
if err := run(); err != nil {
log.Printf("%s ERROR LOG %s", strings.Repeat("=", 5), strings.Repeat("=", 5))
log.Printf("fanbox-dl error: %s", err)
log.Println(strings.Repeat("=", 21))

log.Printf("The error log seems a bug, please open an issue on GitHub: %s.", "https://github.com/hareku/fanbox-dl/issues")
slog.Error("fanbox-dl Error", "error", err)
slog.Error("The error log seems a bug, please open an issue on GitHub", "url", "https://github.com/hareku/fanbox-dl/issues")
}
os.Exit(0)
}
Expand Down

0 comments on commit 7c7d90a

Please sign in to comment.