nir0s
be328d3b26
Verify the token is not anything empty, not just "not an empty string"
If you pass an empty list, tuple, False, 0, whatever.. it will assume th
token is valid, which it isn't.
7 years ago
nir0s
2de666e92c
Use LogzioException when validating token
7 years ago
nir0s
27b212d2b7
Add LogzioException class
Currently the module raises generic Exception (very "don't do it")
7 years ago
nir0s
b511e9ed21
Fix some flake8 stuff and organize imports
7 years ago
Oren Mazor
cc31353d25
fix semantics I rushed through the first time. the handler shouldn't call a private method on the sender
7 years ago
Oren Mazor
27f76c2136
typo
7 years ago
Oren Mazor
7b2040706f
PEP8
7 years ago
Oren Mazor
df76f91e04
extract the queue draining action out of the loop. this way it can be manually called externally
7 years ago
TomasKuznetsov
e365b78d79
Fix tests for 3.6
7 years ago
TomasKuznetsov
44089aaf63
Added extra fields support
7 years ago
Jonathan Liuti
4333b965de
Fix #7 Return formatted message if format string
Currently logging with:
```
logger.info('hello %s', 'world')
```
will send the string "hello %s" to logz.io instead of "hello world"
This commit fixes this situation.
7 years ago
Roi Rav-Hon
6b31517848
Rewrite most of the handler, tests were introduced
8 years ago
Roi Rav-Hon
ffc5191e40
Retry sending to logz.io
8 years ago
Marek Kudlacz
ffe751d0a6
Improve exception logging
Add tests
8 years ago
Marek Kudlacz
d51b4bc9a9
Fix formatter not being used.
Allow custom logzio fields to top level structure
8 years ago
MoisesRT
62b6541f89
removed the slash from the url
8 years ago
Roi Rav-Hon
74f2f37718
Better handle logz.io responses, and drain to file in case of an unrecoverable error
9 years ago
Roi Rav-Hon
05b7534f62
Initial handler release
9 years ago