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

Unified logger #139

Merged
merged 10 commits into from Sep 7, 2020
Merged

Unified logger #139

merged 10 commits into from Sep 7, 2020

Conversation

@orronai
Copy link
Collaborator

orronai commented Sep 6, 2020

No description provided.

orronai added 2 commits Aug 25, 2020
- Create list of patterns that the extractor will ignore
- Fix extractors test and add some test for ignore list
- Fix minor celery issues on local minimized setup
- Remove moment.js request
- Fix extractors tests
- Fix how to get the ignoring files patterns
@yammesicka

This comment has been minimized.

Copy link
Member

yammesicka commented on lms/extractors/base.py in 80d72eb Aug 25, 2020

Return as a List, or even better, consume it in ziparchive.py.
Currently, if multiple lines try to use UNWANTED_FILE_TYPES, only one of them will be able to use the yielded values.

@yammesicka

This comment has been minimized.

Copy link
Member

yammesicka commented on lms/extractors/ziparchive.py in 80d72eb Aug 25, 2020

Maybe UNWATED_FILENAMES?

@yammesicka

This comment has been minimized.

Copy link
Member

yammesicka commented on lms/tests/samples/upload-1-2.ipynb in 80d72eb Aug 25, 2020

This was intentionally there. Please add it as a rule under the .flake8 file

@yammesicka

This comment has been minimized.

Copy link
Member

yammesicka commented on lms/tests/test_extractor.py in 80d72eb Aug 25, 2020

hmph, this is rather breakable. Let's use try/except instead

@yammesicka

This comment has been minimized.

Copy link
Member

yammesicka commented on lms/tests/test_extractor.py in 80d72eb Aug 25, 2020

It can be great to assert that there is file named __pycache__/something.py, and to assert it is not exists after we've used the Extractor on it.

orronai added 5 commits Aug 26, 2020
- Fix some extractors tests
- Fix some issues in .flake8
- Fix all the loggers to be one unified
- Fix the loggers to write to a log file
- Fix the loggers to be one unified
- Fix the loggers to write to a log file
add rotation every month
lms/extractors/base.py Outdated Show resolved Hide resolved
orronai added 3 commits Sep 7, 2020
- Fix the logger to be a global unified one
- Fix the logger to be one unified
@orronai orronai merged commit 6b8019c into master Sep 7, 2020
3 checks passed
3 checks passed
build
Details
LGTM analysis: JavaScript No code changes detected
Details
LGTM analysis: Python No new or fixed alerts
Details
@yammesicka yammesicka deleted the unified-logger branch Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.