Remove temporary debug line. Thanks to CZAirwolf for the report.
Add new command line option --anonymize to obscure all literals in queries/errors to hide confidential data. Thanks to wmorancfi for the feature request.
Add a global regex definition array named @session_closed_msg to add regex that match fatal error messages that do not generate disconnection line in pg log.
- Fix issue in handling SIGTERM/SIGINT that cause pgbadger to continue.
- Add autoclean feature to pgbadger in incremental mode. pgbadger will now removed automatically obsolete binary files unless you specify --noclean at command line. Take care that the old behaviour was to keep those unecessary binary files, now they will be removed if there's already a report in the day directory. In incremental mode (-I) only the binary files of the current parsed week are needed. This may help saving disk space.
Fix revert to single thread when last_line_parsed exists. Thanks to Bruno Almeida for the report.
Fix issue in incremental mode when parsing is stopped after rotating log and rotated log has new lines. The new file was not parsed at all. Thanks to CZAirwolf for the report.
Fix incomplete completion of progress bar since previous patch.
Session count is immediately decreased when a FATAL error is received in the current session.
Add -R | --retention option to set the maximum number of week reports to preserve in the output directory for incremental mode. Thanks to Kong Man for the feature request.
Fix wrong average duration on query that generate the most locks. Thanks to Pascal-b for the report.
Change pgBadger logo and ico to the new one.
Slighty improve javascript.

- use only one call of sql_select
- use only one call of sql_format
- use jQuery selector instead of getElementById to avoid js errors when
not found.
Merge pull request #183 from rjuju/fix_js

Slighty improve javascript.
Fix label of Reset button. Thanks to Julien Rouhaud for the report.
Update ChangeLog and version to 6.0
Fix typo
Add -B or --bar-graph command line option to use bar instead of line in graph. Thanks to Bart Dopheide for the suggestion. Also fix Checkpoint Wal files usage graph title.
- Fix issue in calculating min/max/avg in "General Activity" report. It was build on the sum of queries duration per minutes instead of each duration. Thanks to Jayadevan M for the report.
- The same issue remains with percentile that are build using the sum of duration per minutes and doesn't represent the real queries duration.
- This commit also include a modification in convert_time() method to reports milliseconds.
Fix automatic detection of rsyslogd logs. Thanks to David Day for the report.
Keep tick formatting when zooming.