From 9b60d597e43fee989ad9059a0f699cf4b2f01042 Mon Sep 17 00:00:00 2001 From: respectus Date: Tue, 27 Jun 2017 12:24:37 -0700 Subject: [PATCH] latest merge had an error, also change from print to logger debug --- logdna/logdna.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/logdna/logdna.py b/logdna/logdna.py index 1944c89..1644a2c 100644 --- a/logdna/logdna.py +++ b/logdna/logdna.py @@ -34,7 +34,7 @@ def bufferLog(self, message): if message and message['line']: if self.max_length and len(message['line']) > defaults['MAX_LINE_LENGTH']: message['line'] = message['line'][:defaults['MAX_LINE_LENGTH']] + ' (cut off, too long...)' - print('Line was longer than {0} chars and was truncated.'.format(defaults['MAX_LINE_LENGTH']) + logger.debug('Line was longer than ' + str(defaults['MAX_LINE_LENGTH']) + ' chars and was truncated.') self.bufByteLength += sys.getsizeof(message) self.buf.append(message) diff --git a/setup.py b/setup.py index 5ebb335..66b7ed6 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ setup( name = 'logdna', packages = ['logdna'], - version = '1.0.8', + version = '1.0.9', description = 'A python package for sending logs to LogDNA', author = 'Answerbook Inc.', author_email = 'help@logdna.com', url = 'https://github.com/logdna/python', - download_url = 'https://github.com/logdna/python/tarball/1.0.8', + download_url = 'https://github.com/logdna/python/tarball/1.0.9', keywords = ['logdna', 'logging', 'logs', 'python', 'logdna.com', 'logger'], install_requires=[ 'requests',