5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-06 23:19:30 +08:00

SQOOP-2606. Sqoop2: Do not reconfigure log4j if there are no log4j properties inside sqoop.properties file

(Jarcec via Hari)
This commit is contained in:
Hari Shreedharan 2015-10-09 11:51:02 -07:00
parent 0ea90d024f
commit 38de9dde8d

View File

@ -290,6 +290,11 @@ private synchronized void configureLogging() {
} }
} }
if (props.isEmpty()) {
LOG.info("Skipping log4j configuration as it's not configured in sqoop.properties file.");
return;
}
PropertyConfigurator.configure(props); PropertyConfigurator.configure(props);
} }