Add logging for set system variable. Add connection ID in log. Adjust some log level. Improve readability.