MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / ImportanceWithError

Method ImportanceWithError

cli/pkg/common/log.go:369–377  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

367}
368
369func (sLog *smartIDELogStruct) ImportanceWithError(err error) {
370 if err == nil {
371 return
372 }
373 if _, ok := err.(*exec.ExitError); !ok {
374 sLog.Importance(err.Error())
375 }
376
377}
378
379// 一些重要的信息,已warning的形式输出到控制台
380func (sLog *smartIDELogStruct) Importance(infos ...string) {

Callers 15

newK8sUtilFunction · 0.80
checkAndInstallKubectlFunction · 0.80
getReaderFunction · 0.80
newConfigFunction · 0.80
stop.goFile · 0.80
reset.goFile · 0.80
connect.goFile · 0.80
checkLoginFunction · 0.80
connectFunction · 0.80
RemoveRemoteFunction · 0.80
ExecuteK8sStartCmdFunction · 0.80

Calls 2

ImportanceMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected