ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stoa...@apache.org
Subject ambari git commit: AMBARI-18418. StackServiceDirectory debug messages are logged with placeholders. (Attila Doroszlai via stoader)
Date Wed, 21 Sep 2016 08:09:11 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk e2e8c1386 -> 159546ad9


AMBARI-18418. StackServiceDirectory debug messages are logged with placeholders. (Attila Doroszlai
via stoader)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/159546ad
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/159546ad
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/159546ad

Branch: refs/heads/trunk
Commit: 159546ad988f5ff3eab26256bcb36cc660d8a839
Parents: e2e8c13
Author: Attila Doroszlai <adoroszlai@hortonworks.com>
Authored: Wed Sep 21 10:09:50 2016 +0200
Committer: Toader, Sebastian <stoader@hortonworks.com>
Committed: Wed Sep 21 10:09:50 2016 +0200

----------------------------------------------------------------------
 .../ambari/server/stack/StackServiceDirectory.java      | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/159546ad/ambari-server/src/main/java/org/apache/ambari/server/stack/StackServiceDirectory.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/stack/StackServiceDirectory.java
b/ambari-server/src/main/java/org/apache/ambari/server/stack/StackServiceDirectory.java
index a8b4632..8656896 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/stack/StackServiceDirectory.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/stack/StackServiceDirectory.java
@@ -148,15 +148,15 @@ public class StackServiceDirectory extends ServiceDirectory {
       int fileCount = files.length;
       if (fileCount > 0) {
         packageDir = absPackageDir.getPath().substring(stackDir.getParentFile().getParentFile().getPath().length()
+ 1);
-        LOG.debug("Service package folder for service %s for stack %s has been resolved to
%s",
+        LOG.debug("Service package folder for service {} for stack {} has been resolved to
{}",
                 serviceDir.getName(), stackId, packageDir);
       }
       else {
-        LOG.debug("Service package folder %s for service %s for stack %s is empty.",
+        LOG.debug("Service package folder {} for service {} for stack {} is empty.",
                 absPackageDir, serviceDir.getName(), stackId);
       }
     } else {
-      LOG.debug("Service package folder %s for service %s for stack %s does not exist.",
+      LOG.debug("Service package folder {} for service {} for stack {} does not exist.",
               absPackageDir, serviceDir.getName(), stackId);
     }
 
@@ -166,15 +166,15 @@ public class StackServiceDirectory extends ServiceDirectory {
       int fileCount = files.length;
       if (fileCount > 0) {
         upgradesDir = absUpgradesDir;
-        LOG.debug("Service upgrades folder for service %s for stack %s has been resolved
to %s",
+        LOG.debug("Service upgrades folder for service {} for stack {} has been resolved
to {}",
                 serviceDir.getName(), stackId, packageDir);
       }
       else {
-        LOG.debug("Service upgrades folder %s for service %s for stack %s is empty.",
+        LOG.debug("Service upgrades folder {} for service {} for stack {} is empty.",
                 absUpgradesDir, serviceDir.getName(), stackId);
       }
     } else {
-      LOG.debug("Service upgrades folder %s for service %s for stack %s does not exist.",
+      LOG.debug("Service upgrades folder {} for service {} for stack {} does not exist.",
               absUpgradesDir, serviceDir.getName(), stackId);
     }
   }


Mime
View raw message