From: Kazumasa Mitsunari Date: Thu, 20 Dec 2018 00:34:15 +0000 (+0900) Subject: Make it easier to see journal log for debug X-Git-Tag: 6.99.4~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=05b4c23fbf153fee1c3bda1450c45d2c66b72bae;hp=ed7ed1fd33a14c7d593e1c09499ca47365946e0f;p=apps%2Fagl-service-windowmanager.git Make it easier to see journal log for debug When we set USE_HMI_DEBUG=5 in environment variable, a lot of logs of policy manager displayed. This patch decrease log level of DUMP macro. If we don't need to get policy decision procedure logs or tracing on debug, set USE_HMI_DEBUG=4. Change-Id: Iaa2f2efc68adcece8c6aef44be6a683c7c2a0dee Signed-off-by: Kazumasa Mitsunari --- diff --git a/src/util.hpp b/src/util.hpp index 077f212..65b29e0 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -36,7 +36,7 @@ #define HMI_SEQ_INFO(seq_num, args,...) _HMI_SEQ_LOG(LOG_LEVEL_INFO, __FILENAME__, __FUNCTION__, __LINE__, seq_num, args, ##__VA_ARGS__) #define HMI_SEQ_DEBUG(seq_num, args,...) _HMI_SEQ_LOG(LOG_LEVEL_DEBUG, __FILENAME__, __FUNCTION__, __LINE__, seq_num, args, ##__VA_ARGS__) -#define DUMP(args, ...) _DUMP(LOG_LEVEL_DEBUG, args, ##__VA_ARGS__) +#define DUMP(args, ...) _DUMP(LOG_LEVEL_INFO, args, ##__VA_ARGS__) enum LOG_LEVEL{ LOG_LEVEL_NONE = 0,