Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ committed Aug 8, 2021
1 parent c183d03 commit dc436c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/matrixsyncer/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ func (s *Syncer) newReminder(evt *event.Event, channel *database.Channel) (*data
return reminder, err
}
_, err = s.daemon.Database.AddMessageFromMatrix(evt.ID.String(), evt.Timestamp/1000, content, reminder, database.MessageTypeReminderRequest, channel)
if err != nil {
log.Warn("Was not able to save a message to the database: " + err.Error())
}

msg := fmt.Sprintf("Successfully added new reminder (ID: %d) for %s", reminder.ID, formater.ToLocalTime(reminder.RemindTime, channel))

Expand Down

0 comments on commit dc436c7

Please sign in to comment.