diff options
author | zeripath <art27@cantab.net> | 2019-04-07 01:25:14 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-04-07 03:25:14 +0300 |
commit | 5422f23ed8174661b6e658250e4007b7fdf0d603 (patch) | |
tree | 87d975854be55c51e0a51c49cf93c33e310d30da /modules/log/smtp.go | |
parent | 7ed65a98e80a341885b8cddce971012b7fcdae4e (diff) | |
download | gitea-5422f23ed8174661b6e658250e4007b7fdf0d603.tar.gz gitea-5422f23ed8174661b6e658250e4007b7fdf0d603.zip |
Quieter Integration Tests (#6513)
* Rename BaseLogger to WriterLogger to help the creation of other providers
* Don't export ColorBytes and ResetBytes from ColoredValues
* Make integration tests only print logs if they fail
* check can color before coloring
* I always forget about MSSQL
* Oh and use LEVEL in sqlite.ini
* Make the test logger log at info - as it means you see the router
* Remove empty expected changes
* Make the migrations quieter too
* Don't display SQL on error - it can be looked at in the file logs if necessary
* Fix skip when using onGiteaRun
Diffstat (limited to 'modules/log/smtp.go')
-rw-r--r-- | modules/log/smtp.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/log/smtp.go b/modules/log/smtp.go index 2e78d713ca..f77d716d94 100644 --- a/modules/log/smtp.go +++ b/modules/log/smtp.go @@ -31,7 +31,7 @@ func (s *smtpWriter) Close() error { // SMTPLogger implements LoggerProvider and is used to send emails via given SMTP-server. type SMTPLogger struct { - BaseLogger + WriterLogger Username string `json:"Username"` Password string `json:"password"` Host string `json:"host"` @@ -63,7 +63,7 @@ func (log *SMTPLogger) Init(jsonconfig string) error { if err != nil { return err } - log.createLogger(&smtpWriter{ + log.NewWriterLogger(&smtpWriter{ owner: log, }) log.sendMailFn = smtp.SendMail |