Skip to content

Commit

Permalink
feat: Add name and frame count to movie loaded log
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Nov 13, 2024
1 parent e13e71a commit ba74c0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/movie/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ func FromFlags(flags *flag.FlagSet, path string) (Movie, error) {
}

slog.Info("Movie loaded",
"name", movie.Filename,
"frames", len(movie.Frames),
"duration", movie.Duration().Round(time.Second),
"took", time.Since(start).Round(time.Microsecond),
)
Expand Down

0 comments on commit ba74c0b

Please sign in to comment.