serilog-archive / serilog-sinks-loggly

A Serilog event sink that writes to Loggly
Apache License 2.0
27 stars 30 forks source link

check for null bookmark before updating bookmark #33

Closed MiguelAlho closed 6 years ago

MiguelAlho commented 6 years ago

This has been found to occur if a program only generates a message(s) of a level that is not sent to the remote server (such as debug messages when the info level is the minimum). In this case, the bookmark file will exist on disk but be empty, and no messages will have been persisted on disk. The periodic check will fail in the UpdateBookmark call since no bookmark exists (null)