Skip to content

Commit 3b28488

Browse files
Cleaned up commets
1 parent 7943096 commit 3b28488

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

pkg/log/zap/flags.go

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
// Copyright 2019 The Operator-SDK Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
Copyright 2019 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// Package zap contains helpers for setting up a new logr.Logger instance
18+
// using the Zap logging framework.
1419

1520
package zap
1621

pkg/log/zap/zap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func NewRaw(opts ...Opts) *zap.Logger {
209209
return log
210210
}
211211

212-
// BindToFlagSet
212+
// BindToFlagSet func allows CLI passed flags to be parsed.
213213
func (o *Options) BindFlags(fs *pflag.FlagSet) {
214214
// Set Development mode value
215215
fs.BoolVar(&o.Development, "zap-devel", false, "Enable zap development mode (changes defaults to console encoder, debug log level, and disables sampling)")
@@ -237,6 +237,7 @@ func (o *Options) BindFlags(fs *pflag.FlagSet) {
237237

238238
}
239239

240+
// UseFlagOptions to set logger with CLI passed flags.
240241
func UseFlagOptions(in *Options) func(o *Options) {
241242
return func(o *Options) {
242243
*o = *in

0 commit comments

Comments
 (0)