commit | 1ea57e14b4f9c77c62af13f0e38d314a737f9fcd | [log] [tgz] |
---|---|---|
author | Jon Hall <jhall@onlab.us> | Wed Sep 30 11:26:38 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Oct 01 17:00:14 2015 +0000 |
tree | 6c7f89a1feb06c933cc5ed07226d241e07778a69 | |
parent | 7e5a2037c2113b9cea8537300f3359cfb4008da7 [diff] |
Print exception to log instead of stderr Change-Id: Ib4ecad88ba81ba3ba14d1fbcc1581ef4c16a3abb
diff --git a/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/CounterTestIncrementCommand.java b/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/CounterTestIncrementCommand.java index 12c8140..d93ad78 100644 --- a/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/CounterTestIncrementCommand.java +++ b/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/CounterTestIncrementCommand.java
@@ -92,7 +92,8 @@ } catch (InterruptedException e) { return; } catch (ExecutionException | TimeoutException e) { - e.printStackTrace(); + print("Error executing command"); + log.error("Error executing command counter-test-increment", e); } } }