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

FIX-#7103: Move lower-level functionality logging to debug #7184

Merged
merged 2 commits into from Apr 18, 2024

Conversation

arunjose696
Copy link
Collaborator

@arunjose696 arunjose696 commented Apr 15, 2024

What do these changes do?

  • first commit message and PR title follow format outlined here

    NOTE: If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

  • passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
  • passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
  • signed commit with git commit -s
  • Resolves Move lower-level functionality logging to debug  #7103
  • tests added and passing
  • module layout described at docs/development/architecture.rst is up-to-date

Signed-off-by: arunjose696 <arunjose696@gmail.com>
@arunjose696 arunjose696 changed the base branch from master to main April 18, 2024 11:14
@arunjose696 arunjose696 marked this pull request as ready for review April 18, 2024 11:16
…provided log_level

Signed-off-by: arunjose696 <arunjose696@gmail.com>
@arunjose696
Copy link
Collaborator Author

The below example script could be used to see the logging displays only PANDAS-API logs when logger set to INFO and all logs when logger set to DEBUG.

import modin.pandas as pd
from modin.logging.config import get_logger
from modin.config import LogMode, LogMemoryInterval, LogFileSize
import numpy as np
import logging
LogMode.enable()

logger = get_logger()
logger.setLevel(logging.INFO) # Replace with logger.setLevel(logging.DEBUG)  for lower level logs

df = pd.DataFrame(np.zeros((100, 20), dtype=np.float32, order="C"))
df = pd.concat([df,df])

@anmyachev anmyachev merged commit 177c912 into modin-project:main Apr 18, 2024
37 checks passed
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.

Move lower-level functionality logging to debug
2 participants