Skip to content

Commit

Permalink
#51: Filling up log with Programming and finished messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ballle98 committed May 1, 2024
1 parent bc5f43e commit ea148ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aq_programmer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,8 +1112,6 @@ void waitForSingleThreadOrTerminate(struct programmingThreadCtrl *threadCtrl, pr

clock_gettime(CLOCK_REALTIME, &threadCtrl->aq_data->start_active_time);

LOG(PROG_LOG, LOG_INFO, "Programming: %s, %d\n", ptypeName(threadCtrl->aq_data->active_thread.ptype), threadCtrl->aq_data->active_thread.ptype);

LOG(PROG_LOG, LOG_DEBUG, "Thread %d,%p is active (%s)\n",
threadCtrl->aq_data->active_thread.ptype,
threadCtrl->aq_data->active_thread.thread_id,
Expand All @@ -1128,7 +1126,7 @@ void cleanAndTerminateThread(struct programmingThreadCtrl *threadCtrl)
struct timespec elapsed;
clock_gettime(CLOCK_REALTIME, &threadCtrl->aq_data->last_active_time);
timespec_subtract(&elapsed, &threadCtrl->aq_data->last_active_time, &threadCtrl->aq_data->start_active_time);
LOG(PROG_LOG, LOG_NOTICE, "Thread %d,%p (%s) finished in %d.%03ld sec\n",
LOG(PROG_LOG, LOG_DEBUG, "Thread %d,%p (%s) finished in %d.%03ld sec\n",
threadCtrl->aq_data->active_thread.ptype,
threadCtrl->aq_data->active_thread.thread_id,
ptypeName(threadCtrl->aq_data->active_thread.ptype),
Expand Down

0 comments on commit ea148ce

Please sign in to comment.