http://bugzilla.spamassassin.org/show_bug.cgi?id=4131

           Summary: format of messages when logging to a file
           Product: Spamassassin
           Version: 3.0.2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: spamc/spamd
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


When logging to a file (e.g. with option "-s /var/log/filename") spamd produces 
lines like this:

2005-02-10 17:27:42 [19357] i: connection from localhost.localdomain 
[127.0.0.1] at port 40456
2005-02-10 17:27:42 [19357] i: checking message ...

What is the "i:" for?

It would be much more useful if the line inclluded the name of the generating 
process, eg spamd, for 
ease of identification when lines are logged to a logfile used also by other 
processes.

How about changing the sprintf line in sub logmsg_file from this:
  
 sprintf(
      "%04d-%02d-%02d %02d:%02d:%02d [%s] %s: %s\n",
      @date, $$, 'i', $msg
    )

to this:

 sprintf(
      "%04d-%02d-%02d %02d:%02d:%02d [%s] %s: %s\n",
      @date, $$, 'spamd', $msg
    )



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to