Skip to content

Commit

Permalink
fix error logging (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli committed Apr 15, 2020
1 parent 1fadce9 commit d93387a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,12 @@ func (z *Config) Archive(meeting zoom.Meeting, params runParams) error {
//check if recording file duration is shorter than minimum
start, err := time.Parse(time.RFC3339, f.RecordingStart)
if err != nil {
z.logger.Printf("couldn't parse file recording start %s - %s: %w", f.ID, f.RecordingStart, err)
z.logger.Printf("couldn't parse file recording start %s - %s: %v", f.ID, f.RecordingStart, err)
}

end, err2 := time.Parse(time.RFC3339, f.RecordingEnd)
if err2 != nil {
z.logger.Printf("couldn't parse file recording end %s - %s: %w", f.ID, f.RecordingStart, err)
z.logger.Printf("couldn't parse file recording end %s - %s: %v", f.ID, f.RecordingStart, err)
}

if err == nil && err2 == nil {
Expand Down

0 comments on commit d93387a

Please sign in to comment.