MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / showInfo

Function showInfo

src/screen.go:13–45  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

11)
12
13func showInfo(str string) {
14 infoMutex.Lock()
15 defer infoMutex.Unlock()
16
17 if System.Flag.Info == true {
18 return
19 }
20
21 var max = 23
22 var msg = strings.SplitN(str, ":", 2)
23 var length = len(msg[0])
24 var space string
25
26 if len(msg) == 2 {
27
28 for i := length; i < max; i++ {
29 space = space + " "
30 }
31
32 msg[0] = msg[0] + ":" + space
33
34 var logMsg = fmt.Sprintf("[%s] %s%s", System.Name, msg[0], msg[1])
35
36 printLogOnScreen(logMsg, "info")
37
38 logMsg = strings.Replace(logMsg, " ", "&nbsp;", -1)
39 WebScreenLog.Log = append(WebScreenLog.Log, time.Now().Format("2006-01-02 15:04:05")+" "+logMsg)
40 logCleanUp()
41
42 }
43
44 return
45}
46
47func showDebug(str string, level int) {
48

Callers 15

getProviderDataFunction · 0.85
downloadFileFromServerFunction · 0.85
ThreadfinAutoBackupFunction · 0.85
ThreadfinRestoreFromCLIFunction · 0.85
SSDPFunction · 0.85
extractGZIPFunction · 0.85
BinaryUpdateFunction · 0.85
conditionalUpdateChangesFunction · 0.85
buildXEPGFunction · 0.85
createXEPGMappingFunction · 0.85
createXEPGDatabaseFunction · 0.85
mappingFunction · 0.85

Calls 2

printLogOnScreenFunction · 0.85
logCleanUpFunction · 0.85

Tested by

no test coverage detected