commit/galaxy-central: carlfeberhard: Metrics: allow time to be passed into fluent_log.py, log
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/121e69653f77/ Changeset: 121e69653f77 User: carlfeberhard Date: 2014-04-08 18:55:30 Summary: Metrics: allow time to be passed into fluent_log.py, log Affected #: 1 file diff -r b231f3463565137c81dce701cd194095df873fed -r 121e69653f7728fddfadeb720f93e168a2fc8227 lib/galaxy/util/log/fluent_log.py --- a/lib/galaxy/util/log/fluent_log.py +++ b/lib/galaxy/util/log/fluent_log.py @@ -39,9 +39,11 @@ del self.thread_local.context[key] self.lock.release() - def log( self, label, **kwargs ): + def log( self, label, time=None, **kwargs ): self.lock.acquire() if hasattr( self.thread_local, 'context' ): kwargs.update( self.thread_local.context ) self.lock.release() - self.sender.emit_with_time( label, int(time.time()), kwargs ) + if time is None: + time = int( time.time() ) + self.sender.emit_with_time( label, time, kwargs ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org