Only create chat log when savechat is true