Fix treecapitator debug logging