Ruda Porto Filgueiras
97eabc1137
Added alternative way to limit max number of logs when running in pypy since sys.getsizeof raises TypeError.
6 years ago
nir0s
79d49b8038
Remove TODOs from code
7 years ago
Jotham Apaloo
c6c8171a68
Revert "Leave initialization in c'tor, just call start() where needed"
This reverts commit d41ceabe82
. Which I suspect
does not work because the thread is stateful, i.e. after os.fork the thread in
copy of the process thinks it has already been started, even though it is not
alive. Probably safest to just get a new thread instance if a thread is not alive.
7 years ago
Jotham Apaloo
d41ceabe82
Leave initialization in c'tor, just call start() where needed
7 years ago
Jotham Apaloo
066f73264d
Make logzio handler log correctly after os.fork()
7 years ago
nir0s
9da3e76b08
Replace "print" statements with a logger. Come on, it's 2018!
Also, only use lazy logger string formatting evaluations
7 years ago
nir0s
92b612f62f
Use single quotes instead of double quotes all around
7 years ago
nir0s
8ab14130d5
Format strings realistically and consistently
* Use non-marked format holders since we only support 2.7+
* Use format holders, only, no concat
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
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
Roi Rav-Hon
f6ca061439
Fix bug that consumed more logs while draining than Logz.io's bulk limit
7 years ago
Roi Rav-Hon
7f6031f7f9
More python 3 compatibilities
8 years ago
Roi Rav-Hon
1fe6be90f7
First try on cross python 2 and 3 compatible code
8 years ago
Roi Rav-Hon
6b31517848
Rewrite most of the handler, tests were introduced
8 years ago