Fix compiling issues without debug mode in my log code

Thanks for Odd0002_ to report that.