1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger
Eng Zer Jun 36049a04d2
test: use T.Setenv to set env vars in tests
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-04-23 17:44:16 +08:00
..
awslogs test: use T.Setenv to set env vars in tests 2022-04-23 17:44:16 +08:00
etwlogs panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
fluentd panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
gcplogs panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
gelf panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
journald panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
jsonfilelog panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
local panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
logentries panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
loggerutils daemon/logger: fix data race in LogFile 2022-03-03 14:56:25 -05:00
splunk test: use T.Setenv to set env vars in tests 2022-04-23 17:44:16 +08:00
syslog panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
templates staticcheck: ignore "SA1019: strings.Title is deprecated" 2022-03-16 12:11:54 +01:00
adapter.go
adapter_test.go
copier.go
copier_test.go
factory.go
log_cache_opts.go
logger.go daemon/logger: fix data race in LogFile 2022-03-03 14:56:25 -05:00
logger_error.go
logger_test.go
loginfo.go
metrics.go
plugin.go
plugin_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
plugin_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
proxy.go
ring.go Merge pull request #42291 from angelcar/awslogs-dont-log-messge-discarded-errors 2021-05-27 19:33:44 -07:00
ring_test.go