()
| 413 | } |
| 414 | |
| 415 | func (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 | |
| 430 | func (bl *BeeLogger) SetStatus(status int) { |
| 431 | bl.lock.Lock() |
no outgoing calls
no test coverage detected