Added logging for all errors & warnings