summaryrefslogtreecommitdiff
path: root/logging.go
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2020-01-03 21:33:22 +0300
committerMatt Holt <mholt@users.noreply.github.com>2020-01-03 11:33:22 -0700
commitdff78d82ce21d97cad53171b72b88550e02c2c7f (patch)
treec40db6f01dbeee0b23db1a67cd4d0e431a639071 /logging.go
parent8c7c2e4af2e4e7ad842b959e2100855f6edadd68 (diff)
v2: housekeeping: address minor lint complaints (#2957)
* v2: housekeeping: update tools * v2: housekeeping: adhere to US locale in spelling * v2: housekeeping: simplify code
Diffstat (limited to 'logging.go')
-rw-r--r--logging.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/logging.go b/logging.go
index 790f700..907f22a 100644
--- a/logging.go
+++ b/logging.go
@@ -76,7 +76,7 @@ type Logging struct {
}
// openLogs sets up the config and opens all the configured writers.
-// It closes its logs when ctx is cancelled, so it should clean up
+// It closes its logs when ctx is canceled, so it should clean up
// after itself.
func (logging *Logging) openLogs(ctx Context) error {
// make sure to deallocate resources when context is done
@@ -184,7 +184,7 @@ func (logging *Logging) setupNewDefault(ctx Context) error {
// closeLogs cleans up resources allocated during openLogs.
// A successful call to openLogs calls this automatically
-// when the context is cancelled.
+// when the context is canceled.
func (logging *Logging) closeLogs() error {
for _, key := range logging.writerKeys {
_, err := writers.Delete(key)