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

Method Importance

cli/pkg/common/log.go:380–396  ·  view source on GitHub ↗

一些重要的信息,已warning的形式输出到控制台

(infos ...string)

Source from the content-addressed store, hash-verified

378
379// 一些重要的信息,已warning的形式输出到控制台
380func (sLog *smartIDELogStruct) Importance(infos ...string) {
381 msg := strings.Join(infos, " ")
382 if len(msg) <= 0 {
383 return
384 }
385
386 if isRepeat(msg, zapcore.WarnLevel) { // 是否重复
387 return
388 }
389 msg = entryptionKey(msg) // 加密
390
391 prefix := getPrefix(zapcore.WarnLevel)
392 fmt.Println(prefix, msg)
393
394 sugarLogger.Warn(msg)
395
396}
397
398// 等待另外一个新日志
399func (sLog *smartIDELogStruct) WaitingForAnother() {

Callers 15

ImportanceWithErrorMethod · 0.95
formatVerionFunction · 0.80
newK8sUtilFunction · 0.80
CheckRemoteEnvMethod · 0.80
parseCmdOutputFunction · 0.80
TunnelMultipleFunction · 0.80
ConvertToTempK8SYamlMethod · 0.80
GitConfigFunction · 0.80
start.goFile · 0.80
preRunFunction · 0.80
reset.goFile · 0.80

Calls 4

isRepeatFunction · 0.85
entryptionKeyFunction · 0.85
getPrefixFunction · 0.85
JoinMethod · 0.45

Tested by

no test coverage detected