Fix settings_to_log function call