Fix logging in bot upload