Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log to file #46

Merged
merged 6 commits into from
Mar 12, 2022
Merged

Log to file #46

merged 6 commits into from
Mar 12, 2022

Conversation

eggplants
Copy link
Contributor

@eggplants eggplants commented Mar 11, 2022

Closes: #2

When executing twspace_dl -i <url> with -l or --log, log file (.twspace-dl.%Y-%m-%d_%H-%M-%S_%s.log) will be created in pwd.


twspace_dl -i "https://twitter.com/i/spaces/1LyGBojergoJN" -l

image

@Ryu1845
Copy link
Collaborator

Ryu1845 commented Mar 11, 2022

Thank you very much, I should have done this ages ago.

@eggplants eggplants changed the title Error log Log to file Mar 11, 2022
twspace_dl/__main__.py:146: error: Argument "handlers" to "basicConfig" has incompatible type "List[object]"; expected "Optional[Iterable[Handler]]"
@Ryu1845
Copy link
Collaborator

Ryu1845 commented Mar 12, 2022

Is this done or do you want to work on it more?

@sonarcloud
Copy link

sonarcloud bot commented Mar 12, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@eggplants
Copy link
Contributor Author

Modifying logging's handler violates SonarCloud rules. Is there another workaround to log output of logging to file? I don't come up with.

@eggplants
Copy link
Contributor Author

I am ready for merge. Please merge if you ok.

@Ryu1845
Copy link
Collaborator

Ryu1845 commented Mar 12, 2022

Modifying logging's handler violates SonarCloud rules. Is there another workaround to log output of logging to file? I don't come up with.

It's fine, it just tells me to check for no injection.
Merging now

@Ryu1845 Ryu1845 merged commit bec4fd1 into HoloArchivists:main Mar 12, 2022
@eggplants eggplants deleted the error_log branch March 12, 2022 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add log file
2 participants