Skip to content

Commit b4fa15e

Browse files
committed
cmd/dump: update logging functions
Update my patches for upstrema commit "Fixed errors logging in dump.go" (2b0e4e0)
1 parent f4db944 commit b4fa15e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/dump.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ func runDump(ctx *cli.Context) error {
7676
if ctx.Bool("dbonly") {
7777
targetDBType := ctx.String("database")
7878
if len(targetDBType) > 0 && targetDBType != setting.Database.Type {
79-
log.Printf("Dumping database %s => %s...", setting.Database.Type, targetDBType)
79+
log.Info("Dumping database %s => %s...", setting.Database.Type, targetDBType)
8080
} else {
81-
log.Printf("Dumping database...")
81+
log.Info("Dumping database...")
8282
}
8383

8484
if err := models.DumpDatabase("gitea-db.sql", targetDBType); err != nil {
85-
log.Fatalf("Failed to dump database: %v", err)
85+
log.Fatal("Failed to dump database: %v", err)
8686
}
8787
return nil
8888
}

0 commit comments

Comments
 (0)