Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 0747785

Browse files
committed
print in line protocol
1 parent 480372c commit 0747785

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

influxdb/line_protocol.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from dateutil.parser import parse
1414
from six import iteritems, binary_type, text_type, integer_types, PY2
1515

16+
import sys
17+
1618
EPOCH = UTC.localize(datetime.utcfromtimestamp(0))
1719

1820

@@ -169,4 +171,15 @@ def make_lines(data, precision=None):
169171
line = ' '.join(elements)
170172
lines.append(line)
171173

172-
return '\n'.join(lines) + '\n'
174+
ret = '\n'.join(lines) + '\n'
175+
176+
print('', file=sys.stderr)
177+
print('LINES ARE', file=sys.stderr)
178+
print(lines, file=sys.stderr)
179+
print('', file=sys.stderr)
180+
print('MAKE LINES', file=sys.stderr)
181+
print(ret)
182+
print('', file=sys.stderr)
183+
184+
185+
return ret

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy