cds-snc / tracker

Check whether a Government of Canada domain is adhering to best security practices.
Other
12 stars 9 forks source link

Logging #82

Closed Ethanljf closed 5 years ago

Ethanljf commented 5 years ago

Pulled updates to logging functionality from upstream branch (Ethanljf:tracker / dev) and merged into cds-snc:tracker / logging. Branch is ready to be merged into master.

Contains changes related to the backing up of scan results. Creates a directory where results from previous scans are stored within folders marked with a date corresponding to the time when the scan was executed. Adds error handling for database insertions within processing.py. These changes related to logging were pulled out of the "dev" branch within Ethanljf/tracker and merged down into cds-snc/logging.

This branch also removes the "owners.csv" file. Domains.csv now contains all of the owner data in a format identical to the previously used "owners.csv". Domains with unknown organization data are represented by the inclusion of a domain name within the "domain" column, followed by blank fields for organization (en and fr)

The "backupScanResults" directory will contain files with data corresponding to the results of previously executed scans. Compare these saved results with actual scan results to confirm accuracy/functionality of this branch.

ptd-tbs commented 5 years ago

Improves logging of exceptions