Add in separate logging for error and warn. Fix bug when CreatedOn is nullable.