mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-06 12:23:55 +00:00
log exception if nationality is not known
This commit is contained in:
1 parent
7f31a9ee3f
commit
6dcd3e56ce
1 file changed
+2
+2
@@ -18,6 +18,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.UUID;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.sap.sailing.domain.base.Boat;
|
||||
@@ -235,6 +236,7 @@ public class DomainFactoryImpl implements DomainFactory {
|
||||
} catch (IllegalArgumentException iae) {
|
||||
// the country code was probably not a legal IOC country code
|
||||
nationality = null;
|
||||
logger.log(Level.SEVERE, "Unknown nationality "+competitor.getNationality()+" for competitor "+competitor.getName()+"; leaving null", iae);
|
||||
}
|
||||
Team team = getOrCreateTeam(competitor.getName(), nationality, competitor.getId());
|
||||
Boat boat = new BoatImpl(competitor.getShortName(), boatClass, competitor.getShortName());
|
||||
|
||||
Reference in new issue
Block a user