diff options
author | 2019-08-28 14:41:11 +0100 | |
---|---|---|
committer | 2019-08-28 09:41:11 -0400 | |
commit | 6fdf130b67fee68eb43e1520d27d827389f3ac23 (patch) | |
tree | ddbae29f7bd94de1c66416e56074f4c1675c8ae1 /plugin/pkg/log/plugin_test.go | |
parent | 4fca3b0fb0d443b5b86beafea123f757b9ff2d69 (diff) | |
download | coredns-6fdf130b67fee68eb43e1520d27d827389f3ac23.tar.gz coredns-6fdf130b67fee68eb43e1520d27d827389f3ac23.tar.zst coredns-6fdf130b67fee68eb43e1520d27d827389f3ac23.zip |
pkg/log: remove timestamp (#3218)
journald timestamps, kubernetes timestamps, syslog timestamps. It seems
silly to add our own timestamps to the logging output as these external
ones *also* do it. Only when just running coredns this might be weird.
Remove the timestamping from pkg/log.
Remove test that tested for this.
Fixes: #3211
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/pkg/log/plugin_test.go')
-rw-r--r-- | plugin/pkg/log/plugin_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/plugin/pkg/log/plugin_test.go b/plugin/pkg/log/plugin_test.go index c02338608..b24caa48b 100644 --- a/plugin/pkg/log/plugin_test.go +++ b/plugin/pkg/log/plugin_test.go @@ -19,19 +19,3 @@ func TestPlugins(t *testing.T) { t.Errorf("Expected log to be %s, got %s", info+ts, x) } } - -func TestPluginsDateTime(t *testing.T) { - var f bytes.Buffer - const ts = "test" - golog.SetFlags(0) // Set to 0 because we're doing our own time, with timezone - golog.SetOutput(&f) - - lg := NewWithPlugin("testplugin") - - lg.Info(ts) - // rude check if the date/time is there - str := f.String() - if str[4] != '-' || str[7] != '-' || str[10] != 'T' { - t.Errorf("Expected date got %s...", str[:15]) - } -} |