g_return_if_fail (data != NULL);
/* log that we are completing a lifecycle request */
- DLT_LOG (la_handler_context, DLT_LOG_DEBUG,
+ DLT_LOG (la_handler_context, DLT_LOG_INFO,
DLT_STRING ("Completing a lifecycle request: request id "),
DLT_UINT (data->request_id));
}
else if (error_status == NSM_ERROR_STATUS_OK)
{
- DLT_LOG (la_handler_context, DLT_LOG_DEBUG,
+ DLT_LOG (la_handler_context, DLT_LOG_INFO,
DLT_STRING ("Successfully notified NSM about completed "
"lifecycle request: "),
DLT_STRING ("request id "), DLT_UINT (data->request_id));
/* fetch the next group */
group = g_array_index (starter->start_order, gint, 0);
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Starting LUC group: "), DLT_INT (group));
/* look up the apps for the group */
g_return_if_fail (app != NULL && *app != '\0');
g_return_if_fail (IS_LUC_STARTER (starter));
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Starting LUC app: "), DLT_STRING (app));
/* create the new cancellable */
g_return_if_fail (IS_LUC_STARTER (user_data));
g_return_if_fail (starter->start_order->len > 0);
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Finished starting LUC app: "), DLT_STRING (unit));
/* respond to errors */
/* check if this was the last app in the group to be started */
if (apps->len == 0)
{
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Finished starting LUC group: "), DLT_INT (group));
/* remove the group from the groups and the order */
DLT_STRING (error->message));
g_clear_error (&error);
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Assuming that we should start the LUC"));
/* start all the LUC groups now */
/* check whether we need to start the LUC or not */
if (luc_required)
{
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("LUC is required, starting it now"));
/* start all the LUC groups now */
else
{
/* LUC is not required, log this information */
- DLT_LOG (controller_context, DLT_LOG_DEBUG, DLT_STRING ("LUC is not required"));
+ DLT_LOG (controller_context, DLT_LOG_INFO, DLT_STRING ("LUC is not required"));
/* notify others that we have started the LUC groups; we haven't
* in this case but the call of luc_starter_start_groups() may
g_return_if_fail (IS_LUC_STARTER (starter));
/* log prioritised LUC types */
- DLT_LOG (controller_context, DLT_LOG_DEBUG, DLT_STRING ("Prioritised LUC types:"));
+ DLT_LOG (controller_context, DLT_LOG_INFO, DLT_STRING ("Prioritised LUC types:"));
for (n = 0; n < starter->prioritised_types->len; n++)
{
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_INT (g_array_index (starter->prioritised_types, gint, n)));
}
}
g_array_sort_with_data (starter->start_order, luc_starter_compare_luc_types, starter);
- DLT_LOG (controller_context, DLT_LOG_DEBUG, DLT_STRING ("LUC start groups (ordered):"));
+ DLT_LOG (controller_context, DLT_LOG_INFO, DLT_STRING ("LUC start groups (ordered):"));
for (n = 0; n < starter->start_order->len; n++)
{
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_INT (g_array_index (starter->start_order, gint, n)));
}
application->watchdog_client = watchdog_client_new (watchdog_sec);
/* log information about the watchdog timeout using DLT */
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Updating the systemd watchdog timestamp every "),
DLT_UINT (watchdog_sec), DLT_STRING (" seconds"));
}
}
else if (error_code == NSM_ERROR_STATUS_OK)
{
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Successfully registered the node startup controller "
"as a shutdown consumer"));
}
}
else if (error_code == NSM_ERROR_STATUS_OK)
{
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Successfully unregistered the node startup controller "
"as a shutdown consumer"));
}
/* log the new last user context */
debug_text = g_variant_print (service->current_user_context, TRUE);
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Updated LUC to: "), DLT_STRING (debug_text));
g_free (debug_text);
}
else
{
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Creating D-Bus proxy for unit \""), DLT_STRING (object_path),
DLT_STRING ("\""));
state = systemd_unit_get_active_state (unit);
/* log the the active state has changed */
- DLT_LOG (controller_context, DLT_LOG_DEBUG,
+ DLT_LOG (controller_context, DLT_LOG_INFO,
DLT_STRING ("Active state of unit \""), DLT_STRING (data->unit_name),
DLT_STRING ("\" changed to "), DLT_STRING (state));
g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (consumer), timeout);
/* log information about the re-registration */
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Re-registered shutdown client: "),
DLT_STRING ("bus name "), DLT_STRING (bus_name),
DLT_STRING (", object path "), DLT_STRING (object_path),
shutdown_client);
/* log the registered shutdown client */
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Shutdown client registered: "),
DLT_STRING ("bus name "), DLT_STRING (bus_name),
DLT_STRING (", object path "), DLT_STRING (object_path),
if (shutdown_client_get_shutdown_mode (shutdown_client) == 0)
{
/* log the unregistration now */
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Shutdown client unregistered: "),
DLT_STRING ("bus name "), DLT_STRING (bus_name),
DLT_STRING (", object path "), DLT_STRING (object_path));
g_return_val_if_fail (G_IS_DBUS_METHOD_INVOCATION (invocation), FALSE);
g_return_val_if_fail (NSM_CONSUMER_IS_SERVICE (service), FALSE);
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Finished shutting down client: "),
DLT_STRING ("request id "), DLT_UINT (request_id),
DLT_STRING (", status "), DLT_UINT (status));
g_return_if_fail (NSM_CONSUMER_IS_SERVICE (service));
g_return_if_fail (service->shutdown_queue != NULL);
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Shutting down next client in queue"));
/* check if we have processed all clients in the queue */
if (service->shutdown_queue->remaining_clients == NULL)
{
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Processed all items in the queue for this mode"));
/* check if we have processed all shutdown modes */
if (service->shutdown_queue->current_mode == NSM_SHUTDOWN_TYPE_NORMAL)
{
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("All clients have been shut down"));
/* fast and normal have been processed, we are finished */
}
else if (service->shutdown_queue->current_mode == NSM_SHUTDOWN_TYPE_FAST)
{
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Transitioning to normal shutdown mode"));
/* move on to normal shutdown mode and reset clients to be processed */
if ((shutdown_client_get_shutdown_mode (client)
& service->shutdown_queue->current_mode) != 0)
{
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Shutting down a client: "),
DLT_STRING ("bus name "),
DLT_STRING (shutdown_client_get_bus_name (client)),
}
else
{
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Skipping client "),
DLT_STRING (shutdown_client_get_object_path (client)),
DLT_STRING (": it is not registered for shutdown mode "),
else if (error_code == NSM_ERROR_STATUS_OK)
{
/* log the successful shutdown */
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Successfully shut down client: "),
DLT_STRING ("bus name "),
DLT_STRING (shutdown_client_get_bus_name (client)),
else if (error_code == NSM_ERROR_STATUS_RESPONSE_PENDING)
{
/* log that we are waiting for the client to finish its shutdown */
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Waiting for client to shut down: "),
DLT_STRING ("request id "),
DLT_UINT (GPOINTER_TO_UINT (client)),
application->watchdog_client = watchdog_client_new (watchdog_sec);
/* log information about the watchdog timeout using DLT */
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Updating the systemd watchdog timestamp every "),
DLT_UINT (watchdog_sec), DLT_STRING (" seconds"));
}
if (node_state_id >= NSM_NODE_STATE_NOT_SET && node_state_id <= NSM_NODE_STATE_LAST)
{
/* log how we handled the node state */
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Node state "), DLT_INT (node_state_id),
DLT_STRING (" applied: "),
DLT_STRING (service->accept_state ? "yes" : "no"));
else
{
/* log how we handled the node state */
- DLT_LOG (nsm_dummy_context, DLT_LOG_DEBUG,
+ DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
DLT_STRING ("Received an invalid node state: "), DLT_INT (node_state_id));
/* let the caller know that it sent an invalid parameter */