Skip to content
Snippets Groups Projects
Commit 36f0252a authored by rswindell's avatar rswindell
Browse files

Add more QWK vote-failure log messages so it should be possible to track down

through debug-level log messages exactly why a QWK vote message failed to
import.
parent a0ae99fc
No related branches found
No related tags found
No related merge requests found
......@@ -1062,11 +1062,13 @@ bool sbbs_t::qwk_voting(str_list_t* ini, long offset, smb_net_type_t net_type, c
sprintf(location, "%lx", offset);
if((found = strListFind(section_list, location, /* case_sensitive: */FALSE)) < 0) {
lprintf(LOG_NOTICE, "QWK vote message (offset: %ld) not found in %s VOTING.DAT", offset, qnet_id);
strListFree(&section_list);
return false;
}
/* The section immediately following the (empty) [offset] section is the section of interest */
if((section = section_list[found+1]) == NULL) {
lprintf(LOG_NOTICE, "QWK vote section (offset: %ld) not found in %s VOTING.DAT", offset, qnet_id);
strListFree(&section_list);
return false;
}
......@@ -1208,9 +1210,12 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty
notice = text[PollVoteNotice];
}
result = votemsg(&cfg, &smb, &msg, notice, text[VoteNoticeFmt]);
if(result != SMB_SUCCESS && result != SMB_DUPE_MSG) {
if(result == SMB_DUPE_MSG)
lprintf(LOG_DEBUG, "Duplicate vote-msg from %s", qnet_id);
else if(result != SMB_SUCCESS) {
if(hubnum >= 0)
lprintf(LOG_DEBUG, "Error %s (%d) writing vote-msg to %s", smb.last_error, result, smb.file);
lprintf(LOG_DEBUG, "Error %s (%d) writing %s vote-msg to %s"
,smb.last_error, result, qnet_id, smb.file);
else
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.
Finish editing this message first!
Please register or to comment