Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
fix: Change the logger level from warning to info
Browse files Browse the repository at this point in the history
The logger level of some of the message in `main.c` should not
be warning level.
  • Loading branch information
howjmay committed Jan 6, 2020
1 parent b933764 commit df2eecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions accelerator/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int main(int argc, char* argv[]) {
goto cleanup;
}

log_warning(logger_id, "Tangle-accelerator starts running\n");
log_info(logger_id, "Tangle-accelerator starts running\n");

/* pause() cause TA to sleep until it catch a signal,
* also the return value and errno should be -1 and EINTR on success.
Expand All @@ -86,12 +86,12 @@ int main(int argc, char* argv[]) {
}

cleanup:
log_warning(logger_id, "Destroying API lock\n");
log_info(logger_id, "Destroying API lock\n");
if (apis_lock_destroy() != SC_OK) {
ta_log_error("Destroying api lock failed %s.\n", MAIN_LOGGER);
return EXIT_FAILURE;
}
log_warning(logger_id, "Destroying TA configurations\n");
log_info(logger_id, "Destroying TA configurations\n");
ta_core_destroy(&ta_core);

if (verbose_mode) {
Expand Down

0 comments on commit df2eecf

Please sign in to comment.