AMBARI-6475. Set loglevel to WARN for releases, and fix warnings/deprecations.(vbrodetskyi)