Skip to content

Commit

Permalink
latest merge had an error, also change from print to logger debug
Browse files Browse the repository at this point in the history
  • Loading branch information
respectus committed Jun 27, 2017
1 parent f1056d0 commit 9b60d59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion logdna/logdna.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]',
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',
Expand Down

0 comments on commit 9b60d59

Please sign in to comment.