-
Notifications
You must be signed in to change notification settings - Fork 36
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
Reduce logging for Keras #124
Conversation
This reverts commit 5415f3b.
@neshdev Can you do the same for the kagglehub/src/kagglehub/kaggle_cache_resolver.py Lines 42 to 44 in c2593ce
|
@@ -39,9 +40,11 @@ def __call__(self, h: ModelHandle, path: Optional[str] = None, *, force_download | |||
logger.warning("Ignoring invalid input: force_download flag cannot be used in a Kaggle notebook") | |||
|
|||
if path: | |||
logger.info(f"Attaching '{path}' from model '{h}' to your Kaggle notebook...") | |||
logger.info( | |||
f"Attaching '{path}' from model '{h}' to your Kaggle notebook...", extra={**EXTRA_CONSOLE_BLOCK} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rosbo - Should I block it from showing up in the console, or do you want me to move it down after making the call. If its the latter, I think I would need to keep track of the state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is useful to show in the console if the file is not mounted:
if os.path.exists(cached_path) : // already mounted, print to log file only
else: // not yet mounted, print to console too.
https://b.corp.google.com/issues/338419689