mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-22 15:27:02 +00:00
maillog: Introduce a special-purpose mail logging package
The default INFO logs are more oriented towards debugging and can be a bit too verbose when looking for high-level information. This patch introduces a new "maillog" package, used to log messages of particular relevance to mail transmission at a higher level.
This commit is contained in:
@@ -70,6 +70,10 @@ func Load(path string) (*Config, error) {
|
||||
c.DropCharacters = "."
|
||||
}
|
||||
|
||||
if c.MailLogPath == "" {
|
||||
c.MailLogPath = "<syslog>"
|
||||
}
|
||||
|
||||
return c, nil
|
||||
}
|
||||
|
||||
@@ -84,4 +88,5 @@ func LogConfig(c *Config) {
|
||||
glog.Infof(" Data directory: %s", c.DataDir)
|
||||
glog.Infof(" Suffix separators: %s", c.SuffixSeparators)
|
||||
glog.Infof(" Drop characters: %s", c.DropCharacters)
|
||||
glog.Infof(" Mail log: %s", c.MailLogPath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user