Skip to content

Commit

Permalink
Merge pull request #2002 from fishtown-analytics/fix/rpc-thread-names
Browse files Browse the repository at this point in the history
call pull_information() before we enqueue the log record (#1905)
  • Loading branch information
beckjake authored Dec 13, 2019
2 parents 9222f80 + 11e5e1b commit 89dd04d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/dbt/rpc/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def create(cls):

class QueueLogHandler(logbook.queues.MultiProcessingHandler):
def emit(self, record: logbook.LogRecord):
# trigger the cached proeprties here
record.pull_information()
self.queue.put_nowait(QueueLogMessage.from_record(record))

def emit_error(self, error: JSONRPCError):
Expand Down

0 comments on commit 89dd04d

Please sign in to comment.