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

Function showDebug

src/screen.go:47–79  ·  view source on GitHub ↗
(str string, level int)

Source from the content-addressed store, hash-verified

45}
46
47func showDebug(str string, level int) {
48
49 if System.Flag.Debug < level {
50 return
51 }
52
53 var max = 23
54 var msg = strings.SplitN(str, ":", 2)
55 var length = len(msg[0])
56 var space string
57 var mutex = sync.RWMutex{}
58
59 if len(msg) == 2 {
60
61 for i := length; i < max; i++ {
62 space = space + " "
63 }
64 msg[0] = msg[0] + ":" + space
65
66 var logMsg = fmt.Sprintf("[DEBUG] %s%s", msg[0], msg[1])
67
68 printLogOnScreen(logMsg, "debug")
69
70 mutex.Lock()
71 logMsg = strings.Replace(logMsg, " ", "&nbsp;", -1)
72 WebScreenLog.Log = append(WebScreenLog.Log, time.Now().Format("2006-01-02 15:04:05")+" "+logMsg)
73 logCleanUp()
74 mutex.Unlock()
75
76 }
77
78 return
79}
80
81func showHighlight(str string) {
82

Callers 15

ThreadfinAutoBackupFunction · 0.85
checkFolderFunction · 0.85
checkVFSFolderFunction · 0.85
BinaryUpdateFunction · 0.85
buildXEPGFunction · 0.85
updateXEPGFunction · 0.85
createXEPGMappingFunction · 0.85
createXEPGDatabaseFunction · 0.85
createXMLTVFileFunction · 0.85
createDummyProgramFunction · 0.85
bufferingStreamFunction · 0.85
clientConnectionFunction · 0.85

Calls 2

printLogOnScreenFunction · 0.85
logCleanUpFunction · 0.85

Tested by

no test coverage detected