MCPcopy
hub / github.com/andeya/pholcus / Status

Method Status

logs/logs/log.go:415–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413}
414
415func (bl *BeeLogger) Status() (int, string) {
416 bl.lock.RLock()
417 defer bl.lock.RUnlock()
418
419 switch bl.status {
420 case WORK:
421 return WORK, "WORK"
422 case REST:
423 return REST, "REST"
424 case CLOSE:
425 return CLOSE, "CLOSE"
426 }
427 return NULL, "NULL"
428}
429
430func (bl *BeeLogger) SetStatus(status int) {
431 bl.lock.Lock()

Callers 3

writerMsgMethod · 0.95
PauseOutputMethod · 0.95
GoOnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected