mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
kubeadm: update service check log to include service name
This commit is contained in:
parent
0acf2f0983
commit
b4e026a1ea
@ -125,7 +125,7 @@ func (sc ServiceCheck) Name() string {
|
|||||||
|
|
||||||
// Check validates if the service is enabled and active.
|
// Check validates if the service is enabled and active.
|
||||||
func (sc ServiceCheck) Check() (warnings, errorList []error) {
|
func (sc ServiceCheck) Check() (warnings, errorList []error) {
|
||||||
klog.V(1).Infoln("validating if the service is enabled and active")
|
klog.V(1).Infof("validating if the %q service is enabled and active", sc.Service)
|
||||||
initSystem, err := initsystem.GetInitSystem()
|
initSystem, err := initsystem.GetInitSystem()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return []error{err}, nil
|
return []error{err}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user