Skip to content

Commit

Permalink
info: show hirte version in the start
Browse files Browse the repository at this point in the history
Today reading the logs is not possible to identify which
hirte version is loaded. Helps support/debug and development.

Fixes: #406

Signed-off-by: Douglas Schilling Landgraf <[email protected]>
  • Loading branch information
dougsland authored and engelmi committed Aug 1, 2023
1 parent 421adc1 commit 17e31d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/agent/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,8 @@ bool agent_start(Agent *agent) {
int r = 0;
sd_bus_error error = SD_BUS_ERROR_NULL;

hirte_log_infof("Starting hirte-agent %s", CONFIG_H_HIRTE_VERSION);

if (agent == NULL) {
return false;
}
Expand Down
1 change: 1 addition & 0 deletions src/manager/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,7 @@ static int manager_name_owner_changed(sd_bus_message *m, void *userdata, UNUSED
}

bool manager_start(Manager *manager) {
hirte_log_infof("Starting hirte %s", CONFIG_H_HIRTE_VERSION);
if (manager == NULL) {
return false;
}
Expand Down

0 comments on commit 17e31d6

Please sign in to comment.