Fix logging endpoint