Fixed few misc things related to new logging code and webapi