Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions NodeStateManager/NodeStateManager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,14 +1801,17 @@ static NsmErrorStatus_e NSM__enOnHandleRegisterLifecycleClient(const gchar *sBus
else
{
enRetVal = NsmErrorStatus_Dbus;
DLT_LOG(NsmContext, DLT_LOG_INFO, DLT_STRING("NSM: Failed to register new lifecycle consumer. D-Bus error."),
DLT_STRING(" Bus name: "), DLT_STRING(sBusName ),
DLT_STRING(" Obj name: "), DLT_STRING(sObjName ),
DLT_STRING(" Timeout: " ), DLT_UINT( u32TimeoutMs ),
DLT_STRING(" Registered mode(s): "), DLT_INT( u32ShutdownMode ),
DLT_STRING(" Error: "), DLT_STRING(pError->message ));

g_error_free(pError);
if(pError != NULL)
{
DLT_LOG(NsmContext, DLT_LOG_INFO, DLT_STRING("NSM: Failed to register new lifecycle consumer. D-Bus error."),
DLT_STRING(" Bus name: "), DLT_STRING(sBusName ),
DLT_STRING(" Obj name: "), DLT_STRING(sObjName ),
DLT_STRING(" Timeout: " ), DLT_UINT( u32TimeoutMs ),
DLT_STRING(" Registered mode(s): "), DLT_INT( u32ShutdownMode ),
DLT_STRING(" Error: "), DLT_STRING(pError->message ));
g_error_free(pError);
pError = NULL;
}
}
}
else
Expand Down