Skip to content

Commit

Permalink
mxqd: Remove missleading logging
Browse files Browse the repository at this point in the history
The number shown in the messages doesn't make any sense when we are
running `mxqd --recover-only`, so remove the message.

2022-04-25 19:35:43 +0200 mxqd[122093]: recover: reload 9 running jobs from database
2022-04-25 19:35:43 +0200 mxqd[122093]: job finished (via fspool) : job 38218625 pid 79937 status 0
2022-04-25 19:35:43 +0200 mxqd[122093]: job finished (via fspool) : job 38315022 pid 41063 status 0
2022-04-25 19:35:49 +0200 mxqd[122093]: job finished (via fspool) : job 38357611 pid 21477 status 0
2022-04-25 19:35:49 +0200 mxqd[122093]: job finished (via fspool) : job 38359832 pid 52872 status 0
2022-04-25 19:35:49 +0200 mxqd[122093]: recover: processed 12008 finished jobs from fspool
  • Loading branch information
donald committed May 5, 2022
1 parent 9aa4258 commit b13f94a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2442,8 +2442,9 @@ static int recover_from_previous_crash(struct mxq_server *server)
mx_log_err("recover: server_fspool_scan: %m");
return res;
}
if (res>0)
mx_log_info("recover: processed %d finished jobs from fspool",res);
/* Do not log slots returned, because this value is missleading with --recover-only as the current
* server may have much smaller slots then the previous server started with memory from
* mxqdctl-hostconfig */

res=lost_scan(server);
if (res<0) {
Expand Down

0 comments on commit b13f94a

Please sign in to comment.