Skip to content
Snippets Groups Projects
Commit 95701fb7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't log an error when a QWKnet node uploads votes for old messages

Log an info-level message instead.
Raise the log level severity of duplicate votes from Debug to Info too.
parent 64a903eb
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1968 passed
...@@ -1135,14 +1135,15 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty ...@@ -1135,14 +1135,15 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty
notice = text[PollVoteNotice]; notice = text[PollVoteNotice];
} }
result = votemsg(&cfg, &smb, &msg, notice, text[VoteNoticeFmt]); result = votemsg(&cfg, &smb, &msg, notice, text[VoteNoticeFmt]);
if(result == SMB_DUPE_MSG) if(result == SMB_DUPE_MSG) {
lprintf(LOG_DEBUG, "Duplicate vote-msg (%s) from %s", msg.id, qnet_id); lprintf(LOG_INFO, "Duplicate vote-msg (%s) from %s", msg.id, qnet_id);
else if(result != SMB_SUCCESS) { }
if(hubnum >= 0) { else if(result == SMB_ERR_HDR_FIELD) {
lprintf(LOG_DEBUG, "Error %s (%d) writing %s vote-msg (%s) to %s" lprintf(LOG_INFO, "Error %s (%d) writing %s vote-msg (%s) to %s"
,smb.last_error, result, qnet_id, msg.id, smb.file); ,smb.last_error, result, qnet_id, msg.id, smb.file);
result = SMB_SUCCESS; // ignore vote failures for old messages result = SMB_SUCCESS; // ignore vote failures for old messages
} else }
else if(result != SMB_SUCCESS) {
errormsg(WHERE, ERR_WRITE, smb.file, result, smb.last_error); errormsg(WHERE, ERR_WRITE, smb.file, result, smb.last_error);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment