forked from cwtch.im/libcwtch-go
prune logging
This commit is contained in:
parent
f419794919
commit
178c7e8576
5
lib.go
5
lib.go
|
@ -230,7 +230,7 @@ func SendAppEvent(eventJson string) {
|
||||||
// rest of the logic nicer.
|
// rest of the logic nicer.
|
||||||
var new_event event.Event
|
var new_event event.Event
|
||||||
json.Unmarshal([]byte(eventJson), &new_event)
|
json.Unmarshal([]byte(eventJson), &new_event)
|
||||||
log.Infof("Event: %v", new_event)
|
log.Debugf("Event: %v", new_event.EventType)
|
||||||
|
|
||||||
// We need to update the local cache
|
// We need to update the local cache
|
||||||
// Ideally I think this would be pusgit hed back into Cwtch
|
// Ideally I think this would be pusgit hed back into Cwtch
|
||||||
|
@ -347,7 +347,6 @@ func c_GetAppBusEvent() *C.char {
|
||||||
|
|
||||||
// GetAppBusEvent blocks until an event
|
// GetAppBusEvent blocks until an event
|
||||||
func GetAppBusEvent() string {
|
func GetAppBusEvent() string {
|
||||||
log.Debugf("appbusevent called")
|
|
||||||
for eventHandler == nil {
|
for eventHandler == nil {
|
||||||
log.Debugf("waiting for eventHandler != nil")
|
log.Debugf("waiting for eventHandler != nil")
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
|
@ -355,10 +354,8 @@ func GetAppBusEvent() string {
|
||||||
|
|
||||||
var json = ""
|
var json = ""
|
||||||
for json == "" {
|
for json == "" {
|
||||||
log.Debugf("waiting for json != ''")
|
|
||||||
json = eventHandler.GetNextEvent()
|
json = eventHandler.GetNextEvent()
|
||||||
}
|
}
|
||||||
log.Debugf("appbusevent: %v", json)
|
|
||||||
return json
|
return json
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -362,7 +362,7 @@ func (eh *EventHandler) startHandlingPeer(onion string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (eh *EventHandler) forwardProfileMessages(onion string, q event.Queue) {
|
func (eh *EventHandler) forwardProfileMessages(onion string, q event.Queue) {
|
||||||
log.Infof("Launching Forwarding Goroutine for %v", onion)
|
log.Infof("Launching Forwarding Goroutine")
|
||||||
// TODO: graceful shutdown, via an injected event of special QUIT type exiting loop/go routine
|
// TODO: graceful shutdown, via an injected event of special QUIT type exiting loop/go routine
|
||||||
for {
|
for {
|
||||||
e := q.Next()
|
e := q.Next()
|
||||||
|
|
Loading…
Reference in New Issue