Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Use logger instead of logging consistently accross the scripts #36

Merged
merged 1 commit into from
Dec 5, 2019

Conversation

emkll
Copy link
Contributor

@emkll emkll commented Dec 4, 2019

Logging works, but does not provide the class/method/line where the logging was invoked. Logger was used inconsistently accross the codebase.

Ensure that the logs properly appear with class + methodname + line number in the logs in /home/user/.securedrop_export/logs/export.log in sd-export-usb

@emkll emkll changed the title Use logger instead of logging Use logger instead of logging consistently accross the scripts Dec 4, 2019
redshiftzero
redshiftzero previously approved these changes Dec 4, 2019
Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested in sd-export-usb, lgtm

@sssoleileraaa
Copy link
Contributor

this need a rebase now <3

@redshiftzero
Copy link
Contributor

heads up I still see two cases where info is called directly on logging in export.py (introduced via recent merges)

Logging works, but does not provide the class/method/line where the logging was invoked. Logger was used inconsistently accross the codebase.
Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@redshiftzero redshiftzero merged commit f561bd8 into master Dec 5, 2019
@redshiftzero redshiftzero deleted the logging-logger branch December 5, 2019 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants