You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@twill.apache.org by ch...@apache.org on 2014/01/27 22:41:05 UTC
[4/5] git commit: [TWILL-27] Turn individual file log to TRACE level
while building application bundler.
[TWILL-27] Turn individual file log to TRACE level while building application bundler.
Signed-off-by: Terence Yim <te...@continuuity.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-twill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-twill/commit/979634c8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-twill/tree/979634c8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-twill/diff/979634c8
Branch: refs/heads/master
Commit: 979634c84a1fbe71ee8bb7e73fb74e46369da1a5
Parents: fcbe54d
Author: Terence Yim <te...@continuuity.com>
Authored: Mon Jan 27 12:36:55 2014 -0800
Committer: Terence Yim <te...@continuuity.com>
Committed: Mon Jan 27 13:40:38 2014 -0800
----------------------------------------------------------------------
.../java/org/apache/twill/internal/ApplicationBundler.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-twill/blob/979634c8/twill-core/src/main/java/org/apache/twill/internal/ApplicationBundler.java
----------------------------------------------------------------------
diff --git a/twill-core/src/main/java/org/apache/twill/internal/ApplicationBundler.java b/twill-core/src/main/java/org/apache/twill/internal/ApplicationBundler.java
index a0e9a71..dcc4dbd 100644
--- a/twill-core/src/main/java/org/apache/twill/internal/ApplicationBundler.java
+++ b/twill-core/src/main/java/org/apache/twill/internal/ApplicationBundler.java
@@ -17,8 +17,6 @@
*/
package org.apache.twill.internal;
-import org.apache.twill.filesystem.Location;
-import org.apache.twill.internal.utils.Dependencies;
import com.google.common.base.Function;
import com.google.common.base.Splitter;
import com.google.common.base.Throwables;
@@ -29,6 +27,8 @@ import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.google.common.io.ByteStreams;
import com.google.common.io.Files;
+import org.apache.twill.filesystem.Location;
+import org.apache.twill.internal.utils.Dependencies;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -258,10 +258,10 @@ public final class ApplicationBundler {
* Saves a class entry to the jar output.
*/
private void saveEntry(String entry, URL url, Set<String> entries, JarOutputStream jarOut, boolean compress) {
- LOG.debug("adding bundle entry " + entry);
if (!entries.add(entry)) {
return;
}
+ LOG.trace("adding bundle entry " + entry);
try {
JarEntry jarEntry = new JarEntry(entry);
InputStream is = url.openStream();
@@ -299,7 +299,7 @@ public final class ApplicationBundler {
*/
private void copyDir(File baseDir, String entryPrefix,
Set<String> entries, JarOutputStream jarOut) throws IOException {
- LOG.debug("adding whole dir {} to bundle at '{}'", baseDir, entryPrefix);
+ LOG.trace("adding whole dir {} to bundle at '{}'", baseDir, entryPrefix);
URI baseUri = baseDir.toURI();
Queue<File> queue = Lists.newLinkedList();
Collections.addAll(queue, baseDir.listFiles());