mirror of
https://github.com/apache/sqoop.git
synced 2025-05-06 21:09:36 +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:
parent
0ea90d024f
commit
38de9dde8d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user