Skip to content
Snippets Groups Projects
Commit 29e561f4 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

nan bug

parent 0b284c1f
No related branches found
No related tags found
No related merge requests found
# coding=UTF-8 # coding=UTF-8
from __future__ import print_function, absolute_import, division from __future__ import print_function, absolute_import, division
import six import six
import logging
import time import time
import monotonic import monotonic
logger = logging.getLogger(__name__)
from satella.coding import typed from satella.coding import typed
# Detail levels # Detail levels
...@@ -14,6 +10,7 @@ DISABLED = 0 ...@@ -14,6 +10,7 @@ DISABLED = 0
RUNTIME = 1 RUNTIME = 1
DEBUG = 2 DEBUG = 2
class Metric(object): class Metric(object):
""" """
Base metric class. Base metric class.
...@@ -68,8 +65,6 @@ class StringMetric(Metric): ...@@ -68,8 +65,6 @@ class StringMetric(Metric):
def _log(self, text, *args): def _log(self, text, *args):
"""Log - as if formatting string""" """Log - as if formatting string"""
# Nothing to log # Nothing to log
p = time.time(), monotonic.monotonic(), text % args p = time.time(), monotonic.monotonic(), text % args
while len(self.buffer) >= self.buffer_size: while len(self.buffer) >= self.buffer_size:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment