Fixed log command

changes to input handling broke log function, now it works again