Added debug logging for segfault tracing
This commit is contained in:
parent
d06bbbc002
commit
69ebd332ee
@ -162,6 +162,7 @@ void Uploads()
|
|||||||
int StartMsg(void);
|
int StartMsg(void);
|
||||||
int StartMsg(void)
|
int StartMsg(void)
|
||||||
{
|
{
|
||||||
|
Syslog('m', "StartMsg()");
|
||||||
if (!Msg_Open(newfiles.Area))
|
if (!Msg_Open(newfiles.Area))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@ -202,6 +203,8 @@ void FinishMsg(int Final, int filepos)
|
|||||||
char *temp;
|
char *temp;
|
||||||
FILE *fp, *fi;
|
FILE *fp, *fi;
|
||||||
|
|
||||||
|
Syslog('m', "FinishMsg(%s, %d)", Final ? "TRUE":"FALSE", filepos);
|
||||||
|
|
||||||
temp = calloc(PATH_MAX, sizeof(char));
|
temp = calloc(PATH_MAX, sizeof(char));
|
||||||
|
|
||||||
if (Final && ((fi = OpenMacro(newfiles.Template, newfiles.Language, FALSE)) != NULL)) {
|
if (Final && ((fi = OpenMacro(newfiles.Template, newfiles.Language, FALSE)) != NULL)) {
|
||||||
@ -349,6 +352,7 @@ int Report(gr_list *ta, int filepos)
|
|||||||
*/
|
*/
|
||||||
if (Msg.Size > (CFG.new_split * 1024)) {
|
if (Msg.Size > (CFG.new_split * 1024)) {
|
||||||
MsgCount++;
|
MsgCount++;
|
||||||
|
Syslog('m', "Report() splitting report");
|
||||||
FinishMsg(FALSE, finalpos);
|
FinishMsg(FALSE, finalpos);
|
||||||
StartMsg();
|
StartMsg();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user