This is an automated email from the ASF dual-hosted git repository.
guoyp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/griffin.git
The following commit(s) were added to refs/heads/master by this push:
new 6bcb160 [GRIFFIN-267] use call by name for Loggable trait
6bcb160 is described below
commit 6bcb160bae97e6d5a7f149c2f0a7be75fd249f67
Author: Johnnie <[email protected]>
AuthorDate: Tue Jul 16 17:11:55 2019 +0800
[GRIFFIN-267] use call by name for Loggable trait
Author: Johnnie <[email protected]>
Author: Johnnie Zhang <[email protected]>
Closes #510 from joohnnie/GRIFFIN-267.
---
.../src/main/scala/org/apache/griffin/measure/Loggable.scala | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/measure/src/main/scala/org/apache/griffin/measure/Loggable.scala
b/measure/src/main/scala/org/apache/griffin/measure/Loggable.scala
index 558eb6d..dc4db7b 100644
--- a/measure/src/main/scala/org/apache/griffin/measure/Loggable.scala
+++ b/measure/src/main/scala/org/apache/griffin/measure/Loggable.scala
@@ -35,27 +35,27 @@ trait Loggable {
logger.getLevel
}
- protected def info(msg: String): Unit = {
+ protected def info(msg: => String): Unit = {
logger.info(msg)
}
- protected def debug(msg: String): Unit = {
+ protected def debug(msg: => String): Unit = {
logger.debug(msg)
}
- protected def warn(msg: String): Unit = {
+ protected def warn(msg: => String): Unit = {
logger.warn(msg)
}
- protected def warn(msg: String, e: Throwable): Unit = {
+ protected def warn(msg: => String, e: Throwable): Unit = {
logger.warn(msg, e)
}
- protected def error(msg: String): Unit = {
+ protected def error(msg: => String): Unit = {
logger.error(msg)
}
- protected def error(msg: String, e: Throwable): Unit = {
+ protected def error(msg: => String, e: Throwable): Unit = {
logger.error(msg, e)
}