kalua: log: debug() make all vars local