fixes update logdebug function