Changing log level & passing correct message in throw statement