Fixed logng to work with telnet module