log local config file if an error happens closes #361