Change-Id: I9f6a57a22b470359c7eb038e77736376cd2ac3ee
Signed-off-by: Marian Dubai <mdubai@cisco.com>
package org.opendaylight.controller.config.persist.storage.directory.xml;
import static com.google.common.base.Preconditions.checkArgument;
package org.opendaylight.controller.config.persist.storage.directory.xml;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.common.base.Optional;
import com.google.common.io.Files;
import java.io.File;
import com.google.common.base.Optional;
import com.google.common.io.Files;
import java.io.File;
} catch (JAXBException e) {
// In case of parse error, issue a warning, ignore and continue
LOG.warn(
} catch (JAXBException e) {
// In case of parse error, issue a warning, ignore and continue
LOG.warn(
- "Unable to parse configuration snapshot from {}. Initial config from {} will be IGNORED in this run. " +
- "Note that subsequent config files may fail due to this problem. " +
+ "Unable to parse configuration snapshot from {}. Initial config from {} will be IGNORED in this run. ",
+ file, file);
+ LOG.warn(
+ "Note that subsequent config files may fail due to this problem. ",
"Xml markup in this file needs to be fixed, for detailed information see enclosed exception.",
"Xml markup in this file needs to be fixed, for detailed information see enclosed exception.",
}
return Optional.absent();
}
return Optional.absent();
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import com.google.common.base.Optional;
import java.io.File;
import java.io.IOException;
import com.google.common.base.Optional;
import java.io.File;
import java.io.IOException;