Better warining messages for logging