matomo-org / matomo-log-analytics

Import any kind of server logs in Matomo for powerful log analytics. Universal log file parsing and reporting.
https://matomo.org/log-analytics/
GNU General Public License v3.0
225 stars 118 forks source link

Fix importing logs using stdin #275

Closed sgiehl closed 4 years ago

sgiehl commented 4 years ago

fixes #273

mattab commented 4 years ago

Can we add a test for this case so it won't regress again in the future?

sgiehl commented 4 years ago

@mattab I'm not that deep into python. Would need to investigate if it's possible to "overwrite" stdin in tests

diosmosis commented 4 years ago

If it's still important to add tests: https://stackoverflow.com/questions/6271947/how-can-i-simulate-input-to-stdin-for-pyunit