mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #2039 from dannon/fluent_tweaks
Fix fluent query log serialization when datetime types are in use.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
Provides a `TraceLogger` implementation that logs to a fluentd collector
|
||||
"""
|
||||
|
||||
import json
|
||||
import threading
|
||||
import time
|
||||
|
||||
@@ -41,4 +42,4 @@ class FluentTraceLogger( object ):
|
||||
kwargs.update( self.thread_local.context )
|
||||
self.lock.release()
|
||||
event_time = event_time or time.time()
|
||||
self.sender.emit_with_time( label, int(event_time), kwargs )
|
||||
self.sender.emit_with_time( label, int(event_time), json.dumps(kwargs, default=str))
|
||||
|
||||
Reference in New Issue
Block a user