Improve handling of bad options in the autoreload options:
nil
as theWithLogger
logger will be treated as disabling logging.- Less than 1 for
WithMaxAttempts
will be treated as 1. nil
as theWithOnReload
will be treated as a no-op function.
Change Logger
interface to no longer Fatal
. Instead it will Error
to avoid requiring that the callers function actually exit the program. This is a breaking change that will require re-implementation of the Logger
.