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

Refactor user-messages and internal logs with logging-handler #9

Open
kopytjuk opened this issue Feb 14, 2021 · 0 comments
Open

Refactor user-messages and internal logs with logging-handler #9

kopytjuk opened this issue Feb 14, 2021 · 0 comments

Comments

@kopytjuk
Copy link
Owner

kopytjuk commented Feb 14, 2021

Currently internal logging and state messages to the frontend are separate code paths.

@app.task(bind=True)
def run_imdb_user_watchlist_check(self, url: str, location_code: str) -> dict:

    pt = ProgressTracker(self)

    pt.info("Starting ...")

    url = url.strip()

    response_dict = {"result": None}

    response_dict["result"] = check_imdb_user_watchlist(url, location_code, pt)

    pt.info("Finalizing ...")

    return response_dict

Merge both in one solution and remove ProgressTracker.

@kopytjuk kopytjuk changed the title Refactor usermessages and internal logs with logging-handler Refactor user-messages and internal logs with logging-handler Feb 14, 2021
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

No branches or pull requests

1 participant