Antar1011 / Onix

The Pokemon Data-Mining Package
http://onix.readthedocs.io/en/latest/
GNU General Public License v3.0
7 stars 0 forks source link

LogProcessor: more error-handling modes besides "skip" and "raise" #71

Closed Antar1011 closed 8 years ago

Antar1011 commented 8 years ago

Right now the only two error-handling options are:

'''
                    * "raise" : raise an exception if an error is encountered.
                    * "skip" : silently skip problematic logs
'''

This means that either one bad log ruins the whole batch or that bad logs don't get reported.

"Robust error handling" is currently targeted for the 0.7 release, but in order to get through "a whole month of logs" this will need to be dealt with sooner (0.4 release).

For now, I propose just a "warn" strategy that prints the error message but keeps chugging.

Antar1011 commented 8 years ago

If I want to punt this to 0.4, the workaround for now is to do this manually by processing logs one-at-a-time (using glob to get the list of logs).

Antar1011 commented 8 years ago

I think this time around I'm going to do "warn" as well.