Skip to content

Commit

Permalink
Merge pull request kmesh-net#870 from hzxuzhonghu/spammy-log
Browse files Browse the repository at this point in the history
remove spammy cni installer log
  • Loading branch information
kmesh-bot authored Sep 20, 2024
2 parents ad3d9cd + 9cc2fee commit 7740540
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions pkg/cni/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Author: bitcoffee
* Create: 2023-11-19
*/

package cni
Expand Down Expand Up @@ -102,7 +99,7 @@ func (i *Installer) WatchServiceAccountToken() error {
}

case event := <-i.Watcher.Events(tokenPath):
log.Infof("got event %s", event.String())
log.Debugf("got event %s", event.String())

if event.Has(fsnotify.Write) || event.Has(fsnotify.Create) {
if timerC == nil {
Expand Down
1 change: 0 additions & 1 deletion pkg/cni/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ func maybeWriteKubeConfigFile(serviceAccountPath, kubeconfigFilepath string) err
}

if shouldCreateKubeConfigFile(kc, kubeconfigFilepath) {
log.Info("kubeconfig either does not exist or is out of date, writing a new one")
if err := utils.AtomicWrite(kubeconfigFilepath, []byte(kc), os.FileMode(0o600)); err != nil {
return err
}
Expand Down

0 comments on commit 7740540

Please sign in to comment.