Turn on Guest-Client logs on centos guest image

Currently Guest-Client logs are written to syslog's daemon facility
with 'debug' level, however syslog conf in tis-centos-guest.img only
has 'info' level turned on for daemon facility.

Change the debug level to 'info' so that Guest-Client logs can be
written to /var/log/messages. This will help debugging future guest
heartbeat issues.

Also fix typo in guest_heartbeat_enabled_state_health_check() trace.

Change-Id: Iab72cce9be2986c6cafb79fa66aed6edfb36f32d
This commit is contained in:
Jack Ding 2018-04-18 14:14:28 -04:00 committed by Al Bailey
parent 1370e9d948
commit 5d65b0a6a7
4 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
SRC_DIR=$CGCS_BASE/mwa-thales/guest-client
COPY_LIST="$SRC_DIR/*"
TIS_PATCH_VER=5
TIS_PATCH_VER=6

View File

@ -106,7 +106,7 @@ void guest_debug_log( const char* format, ... )
}
#ifdef GUEST_DEBUG_WANT_SYSLOG
syslog(LOG_DEBUG, "%s", log_data);
syslog(LOG_INFO, "%s", log_data);
#else
printf("%s %s: %s\n", time_str, _process_name, log_data);
#endif

View File

@ -100,7 +100,7 @@ static bool guest_heartbeat_enabled_state_health_check(
if (GUEST_OKAY != error)
{
DPRINTFE("Failed to invoke health script %s.",
config->event_handling_script);
config->health_check_script);
return true; // rearm
}
}

View File

@ -106,7 +106,7 @@ void guest_api_debug_log( const char* format, ... )
}
#ifdef GUEST_DEBUG_WANT_SYSLOG
syslog(LOG_DEBUG, "%s", log_data);
syslog(LOG_INFO, "%s", log_data);
#else
printf("%s %s: %s\n", time_str, _process_name, log_data);
#endif