replace newlines in log messages
read config file outside recovery loop, to crash early