@@ -554,11 +554,12 @@ static vine_result_code_t get_completion_result(struct vine_manager *q, struct v
554
554
original -> library_failed_count ++ ;
555
555
original -> time_when_last_failure = timestamp_get ();
556
556
}
557
- printf ("Library %s failed on worker %s (%s)" , t -> provides_library , w -> hostname , w -> addrport );
558
- if (q -> watch_library_logfiles )
559
- printf (", check the library log file %s\n" , t -> library_log_path );
560
- else
561
- printf (", enable watch-library-logfiles for debug\n" );
557
+ debug (D_VINE | D_NOTICE , "Library %s failed on worker %s (%s)" , t -> provides_library , w -> hostname , w -> addrport );
558
+ if (q -> watch_library_logfiles ) {
559
+ debug (D_VINE | D_NOTICE , ", check the library log file %s\n" , t -> library_log_path );
560
+ } else {
561
+ debug (D_VINE | D_NOTICE , ", enable watch-library-logfiles for debug\n" );
562
+ }
562
563
} else {
563
564
/* Update task stats for this completion. */
564
565
observed_execution_time = timestamp_get () - t -> time_when_commit_end ;
@@ -2859,8 +2860,9 @@ static void count_worker_resources(struct vine_manager *q, struct vine_worker_in
2859
2860
2860
2861
static void update_max_worker (struct vine_manager * q , struct vine_worker_info * w )
2861
2862
{
2862
- if (!w )
2863
+ if (!w ) {
2863
2864
return ;
2865
+ }
2864
2866
2865
2867
if (w -> resources -> workers .total < 1 ) {
2866
2868
return ;
@@ -3213,8 +3215,9 @@ int vine_manager_transfer_capacity_available(struct vine_manager *q, struct vine
3213
3215
}
3214
3216
3215
3217
/* If that resulted in a match, move on to the next file. */
3216
- if (found_match )
3218
+ if (found_match ) {
3217
3219
continue ;
3220
+ }
3218
3221
3219
3222
/*
3220
3223
If no match was found, the behavior depends on the original file type.
@@ -4670,8 +4673,9 @@ int vine_submit(struct vine_manager *q, struct vine_task *t)
4670
4673
t -> time_when_submitted = timestamp_get ();
4671
4674
q -> stats -> tasks_submitted ++ ;
4672
4675
4673
- if (q -> monitor_mode != VINE_MON_DISABLED )
4676
+ if (q -> monitor_mode != VINE_MON_DISABLED ) {
4674
4677
vine_monitor_add_files (q , t );
4678
+ }
4675
4679
4676
4680
rmsummary_merge_max (q -> max_task_resources_requested , t -> resources_requested );
4677
4681
@@ -4700,8 +4704,7 @@ struct vine_task *send_library_to_worker(struct vine_manager *q, struct vine_wor
4700
4704
*/
4701
4705
if (original -> library_failed_count > q -> max_library_retries ) {
4702
4706
vine_manager_remove_library (q , name );
4703
- debug (D_VINE , "library %s has reached the maximum failure count %d, it has been removed" , name , q -> max_library_retries );
4704
- printf ("library %s has reached the maximum failure count %d, it has been removed\n" , name , q -> max_library_retries );
4707
+ debug (D_VINE | D_NOTICE , "library %s has reached the maximum failure count %d, it has been removed\n" , name , q -> max_library_retries );
4705
4708
return 0 ;
4706
4709
}
4707
4710
0 commit comments