summaryrefslogtreecommitdiff
path: root/logger
diff options
authorJohn R. Lenton <jlenton@gmail.com>2016-09-10 15:50:03 +0100
committerJohn R. Lenton <jlenton@gmail.com>2016-09-10 15:50:03 +0100
commit6d4cd7a2e2dd69d023d03c2930b6e13c915b2bc7 (patch)
tree8bfe8126318d0b07454b6107e6e62373bff859af /logger
parent9e9decf80b3de5008a7d6c2985000056c9daed7f (diff)
s/can('t| not)/cannot/
Diffstat (limited to 'logger')
-rw-r--r--logger/logger.go2
-rw-r--r--logger/logger_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/logger/logger.go b/logger/logger.go
index 2027c7a879..6e5fcbd1a9 100644
--- a/logger/logger.go
+++ b/logger/logger.go
@@ -134,7 +134,7 @@ func NewConsoleLog(w io.Writer, flag int) (*ConsoleLog, error) {
sys, err := newSyslog()
if err != nil {
- clog.Output(3, "WARNING: can not create syslog logger")
+ clog.Output(3, "WARNING: cannot create syslog logger")
sys = log.New(ioutil.Discard, "", flag)
}
diff --git a/logger/logger_test.go b/logger/logger_test.go
index 2f20fe2bd4..2189442343 100644
--- a/logger/logger_test.go
+++ b/logger/logger_test.go
@@ -140,7 +140,7 @@ func (s *LogSuite) TestSyslogFails(c *C) {
// ensure a warning is displayed
l, err := NewConsoleLog(&logbuf, DefaultFlags)
c.Assert(err, IsNil)
- c.Check(logbuf.String(), Matches, `(?m).*:\d+: WARNING: can not create syslog logger`)
+ c.Check(logbuf.String(), Matches, `(?m).*:\d+: WARNING: cannot create syslog logger`)
// ensure that even without a syslog the console log works and we
// do not crash