mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
operator: Set klogr's format to FormatKlog
The default "Serialize" breaks multiline output. Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
parent
2e0c45b563
commit
656676b267
@ -1,4 +1,4 @@
|
||||
// Copyright 2020 Intel Corporation. All Rights Reserved.
|
||||
// Copyright 2020-2022 Intel Corporation. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@ -101,7 +101,7 @@ func main() {
|
||||
pm *patcher.Manager
|
||||
)
|
||||
|
||||
ctrl.SetLogger(klogr.New())
|
||||
ctrl.SetLogger(klogr.NewWithOptions(klogr.WithFormat(klogr.FormatKlog)))
|
||||
|
||||
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
|
||||
flag.StringVar(&devicePluginNamespace, "deviceplugin-namespace", metav1.NamespaceSystem, "The namespace where deviceplugin daemonsets are created")
|
||||
|
Loading…
Reference in New Issue
Block a user