Implement indexing into Apache Druid #1
|
@ -3,7 +3,7 @@ from string import digits
|
|||
|
||||
import main
|
||||
from utils.logging.log import *
|
||||
from utils.logging.debug import debug
|
||||
from utils.logging.debug import debug, trace
|
||||
from utils.parsing import parsen
|
||||
|
||||
def getWhoSingle(name, query):
|
||||
|
@ -84,7 +84,7 @@ def _initialUsers(name, channel, users):
|
|||
p.execute()
|
||||
|
||||
def initialUsers(name, channel, users):
|
||||
debug("Initialising WHO records for %s on %s" % (channel, name))
|
||||
trace("Initialising WHO records for %s on %s" % (channel, name))
|
||||
d = deferToThread(_initialUsers, name, channel, users)
|
||||
#d.addCallback(testCallback)
|
||||
|
||||
|
@ -99,7 +99,7 @@ def _initialNames(name, channel, names):
|
|||
p.execute()
|
||||
|
||||
def initialNames(name, channel, names):
|
||||
debug("Initialising NAMES records for %s on %s" % (channel, name))
|
||||
trace("Initialising NAMES records for %s on %s" % (channel, name))
|
||||
d = deferToThread(_initialNames, name, channel, names)
|
||||
#d.addCallback(testCallback)
|
||||
|
||||
|
@ -235,6 +235,6 @@ def _delChannels(net, channels):
|
|||
p.execute()
|
||||
|
||||
def delChannels(net, channels): # we have left a channel
|
||||
debug("Purging channel %s for %s" % (", ".join(channels), net))
|
||||
trace("Purging channel %s for %s" % (", ".join(channels), net))
|
||||
d = deferToThread(_delChannels, net, channels)
|
||||
#d.addCallback(testCallback)
|
||||
|
|
Loading…
Reference in New Issue