Made log WARN and added stack trace