Skip to content

Commit

Permalink
Reduce invalid job found log from error to warning (skot#480)
Browse files Browse the repository at this point in the history
* Reduce invalid job found from error to info

* Standarized on LOGW for Invalid job
  • Loading branch information
eandersson authored Jan 27, 2025
1 parent e7b037d commit f40972c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/asic/bm1366.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ task_result * BM1366_proccess_work(void * pvParameters)
GlobalState * GLOBAL_STATE = (GlobalState *) pvParameters;

if (GLOBAL_STATE->valid_jobs[job_id] == 0) {
ESP_LOGE(TAG, "Invalid job found, 0x%02X", job_id);
ESP_LOGW(TAG, "Invalid job found, 0x%02X", job_id);
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion components/asic/bm1368.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ task_result * BM1368_proccess_work(void * pvParameters)
GlobalState * GLOBAL_STATE = (GlobalState *) pvParameters;

if (GLOBAL_STATE->valid_jobs[job_id] == 0) {
ESP_LOGE(TAG, "Invalid job found, 0x%02X", job_id);
ESP_LOGW(TAG, "Invalid job found, 0x%02X", job_id);
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion components/asic/bm1370.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ task_result * BM1370_proccess_work(void * pvParameters)
GlobalState * GLOBAL_STATE = (GlobalState *) pvParameters;

if (GLOBAL_STATE->valid_jobs[job_id] == 0) {
ESP_LOGE(TAG, "Invalid job nonce found, 0x%02X", job_id);
ESP_LOGW(TAG, "Invalid job nonce found, 0x%02X", job_id);
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion components/asic/bm1397.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ task_result *BM1397_proccess_work(void *pvParameters)
GlobalState *GLOBAL_STATE = (GlobalState *)pvParameters;
if (GLOBAL_STATE->valid_jobs[rx_job_id] == 0)
{
ESP_LOGI(TAG, "Invalid job nonce found, id=%d", rx_job_id);
ESP_LOGW(TAG, "Invalid job nonce found, id=%d", rx_job_id);
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion main/tasks/asic_result_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void ASIC_result_task(void *pvParameters)

if (GLOBAL_STATE->valid_jobs[job_id] == 0)
{
ESP_LOGI(TAG, "Invalid job nonce found, 0x%02X", job_id);
ESP_LOGW(TAG, "Invalid job nonce found, 0x%02X", job_id);
continue;
}

Expand Down

0 comments on commit f40972c

Please sign in to comment.