summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/nclient4/client.go
diff options
context:
space:
mode:
authorChris Koch <chrisko@google.com>2019-09-23 16:59:13 -0700
committerChris K <c@chrisko.ch>2019-09-24 00:32:42 -0700
commit939f3325d58bb688d8f2902c9e16bffbbbe490b3 (patch)
treef42c1b11bf46fbfd1d0de4934bb0c7f3fab8eaba /dhcpv4/nclient4/client.go
parent3b29cbd2a47fb7ea9a028ca3bc150f855ae2c5ec (diff)
nclient6: copy & paste log infra to v6
Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'dhcpv4/nclient4/client.go')
-rw-r--r--dhcpv4/nclient4/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/nclient4/client.go b/dhcpv4/nclient4/client.go
index 95a224c..2092e01 100644
--- a/dhcpv4/nclient4/client.go
+++ b/dhcpv4/nclient4/client.go
@@ -264,7 +264,7 @@ func WithTimeout(d time.Duration) ClientOpt {
func WithSummaryLogger() ClientOpt {
return func(c *Client) {
c.logger = shortSummaryLogger{
- Logger: log.New(os.Stderr, "[dhcpv4]", log.LstdFlags),
+ Logger: log.New(os.Stderr, "[dhcpv4] ", log.LstdFlags),
}
}
}
@@ -273,7 +273,7 @@ func WithSummaryLogger() ClientOpt {
func WithDebugLogger() ClientOpt {
return func(c *Client) {
c.logger = debugLogger{
- Logger: log.New(os.Stderr, "[dhcpv4]", log.LstdFlags),
+ Logger: log.New(os.Stderr, "[dhcpv4] ", log.LstdFlags),
}
}
}