Fixed action and added logger

Fixed action and added logger