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

Include message-ID in duplicate / failed vote-message log messages.

parent 388c6d51
No related branches found
No related tags found
No related merge requests found
...@@ -1211,11 +1211,11 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty ...@@ -1211,11 +1211,11 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty
} }
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 from %s", qnet_id); lprintf(LOG_DEBUG, "Duplicate vote-msg (%s) from %s", msg.id, qnet_id);
else if(result != SMB_SUCCESS) { else if(result != SMB_SUCCESS) {
if(hubnum >= 0) if(hubnum >= 0)
lprintf(LOG_DEBUG, "Error %s (%d) writing %s vote-msg to %s" lprintf(LOG_DEBUG, "Error %s (%d) writing %s vote-msg (%s) to %s"
,smb.last_error, result, qnet_id, smb.file); ,smb.last_error, result, qnet_id, msg.id, smb.file);
else else
errormsg(WHERE, ERR_WRITE, smb.file, result, smb.last_error); errormsg(WHERE, ERR_WRITE, smb.file, result, smb.last_error);
} }
...@@ -1224,7 +1224,8 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty ...@@ -1224,7 +1224,8 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty
smb_hfield_str(&msg, RFC822MSGID, section + 6); smb_hfield_str(&msg, RFC822MSGID, section + 6);
if((result = smb_addpollclosure(&smb, &msg, smb_storage_mode(&cfg, &smb))) != SMB_SUCCESS) { if((result = smb_addpollclosure(&smb, &msg, smb_storage_mode(&cfg, &smb))) != SMB_SUCCESS) {
if(hubnum >= 0) if(hubnum >= 0)
lprintf(LOG_DEBUG, "Error %s (%d) writing poll-close-msg to %s", smb.last_error, result, smb.file); lprintf(LOG_DEBUG, "Error %s (%d) writing poll-close-msg (%s) to %s"
,smb.last_error, result, msg.id, smb.file);
else else
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