Fixed broke reference to logfunc in listener