Skip to content

Commit

Permalink
LSNBLDR-806 - Change some info messages to debug in import (sakaiproj…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonespm authored Apr 25, 2017
1 parent e6bcb87 commit 17b520a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ public class ZipLoader implements CartridgeLoader {
fis = cc_inputStream;
else
fis = new FileInputStream(cc);
log.info("unzip fis " + fis);
log.debug("unzip fis " + fis);
zis = new ZipInputStream(new BufferedInputStream(fis));
ZipEntry entry;
while ((entry = zis.getNextEntry())!=null) {
log.info("zip name " + entry.getName());
log.debug("zip name " + entry.getName());
//Fix the path to be correct for the system extracting it to
String fileName = FilenameUtils.separatorsToSystem(entry.getName());
File target=new File(root, fileName);
Expand All @@ -141,11 +141,11 @@ public class ZipLoader implements CartridgeLoader {
dest.flush();
dest.close();
dest = null;
log.info("wrote file " + target);
log.debug("wrote file " + target);
}
}
} catch (Exception x) {
log.info("exception " + x);
log.warn("exception " + x);
} finally {
if (zis != null) {
try {zis.close();} catch (Exception ignore) {}
Expand All @@ -167,7 +167,7 @@ public class ZipLoader implements CartridgeLoader {
public InputStream
getFile(String the_target) throws FileNotFoundException, IOException {
unzip();
// log.info("getfile " + root + "::" + the_target + "::" + (new File(root, the_target)).getCanonicalPath());
log.debug("getfile {} :: {} :: {}", root, the_target, (new File(root, the_target)).getCanonicalPath());
File f = new File(root, the_target);
// check for people using .. or other tricks
if (!f.getCanonicalPath().startsWith(rootPath))
Expand Down

0 comments on commit 17b520a

Please sign in to comment.