Fixed bug with unassigned log function + reduced logging amount