Skip to content

Commit

Permalink
more info in log
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Oct 1, 2024
1 parent 816d450 commit f13c5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/models/file_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (m *FileModel) ConvertAndBroadcastWhiteboardFile(roomId, roomSid, filePath
_, err = cmd.Output()

if err != nil {
log.Errorln(err)
log.Errorln(fmt.Sprintf("soffice file conversion failed for roomId: %s; file: %s; mimeType: %s; variant: %s; msg: %s", roomId, file, mType.String(), variant, err.Error()))
status <- convertStatus{status: false, err: err}
return
}
Expand All @@ -120,7 +120,7 @@ func (m *FileModel) ConvertAndBroadcastWhiteboardFile(roomId, roomSid, filePath
_, err = cmd.Output()

if err != nil {
log.Errorln(err)
log.Errorln(fmt.Sprintf("mutool file conversion failed for roomId: %s; file: %s; mimeType: %s; msg: %s", roomId, file, mType.String(), err.Error()))
status <- convertStatus{status: false, err: err}
return
}
Expand Down

0 comments on commit f13c5ad

Please sign in to comment.