You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by if...@apache.org on 2020/12/11 13:28:44 UTC

[cassandra-harry] 07/10: Use `logger.error` instead of `printStackTrace` in HarryRunner.

This is an automated email from the ASF dual-hosted git repository.

ifesdjeen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-harry.git

commit ede0115320a438dce9b5d19039782cacc0268a77
Author: Gianluca Righetto <gi...@menttis.com>
AuthorDate: Wed Dec 9 17:05:35 2020 -0300

    Use `logger.error` instead of `printStackTrace` in HarryRunner.
---
 harry-runner/src/harry/runner/HarryRunner.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/harry-runner/src/harry/runner/HarryRunner.java b/harry-runner/src/harry/runner/HarryRunner.java
index a18885b..3adf9c0 100644
--- a/harry-runner/src/harry/runner/HarryRunner.java
+++ b/harry-runner/src/harry/runner/HarryRunner.java
@@ -72,7 +72,7 @@ public interface HarryRunner
             }).get(run.snapshot.run_time_unit.toSeconds(run.snapshot.run_time) + 30,
                    TimeUnit.SECONDS);
             if (result instanceof Throwable)
-                ((Throwable) result).printStackTrace();
+                logger.error("Execution failed", result);
 
         }
         catch (Throwable e)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org