Skip to content

Colab logging - #455

Merged
bovlb merged 6 commits into
developfrom
colab-logging
Jul 24, 2024
Merged

bovlb merged 6 commits into
developfrom
colab-logging

Conversation

@bovlb

@bovlb bovlb commented Jul 23, 2024 •

Copy link
Copy Markdown
Contributor

Google Colab sets up logging slightly differently from Jupyter. Specifically it creates a <StreamHandler stderr (NOTSET)> handler on the root logger. This means that if a library (like ours) sets the logger level to DEBUG, then it gets printed, regardless of the level on the handlers we set up.

With this change, we'll set the logger level to the minimum of the two handler levels if either is explicitly set.

This also includes a fix for an unrelated Kaggle problem. Kaggle/kaggle-cli#611

@bovlb
bovlb requested a review from a team July 23, 2024 22:26
gsaluja9
gsaluja9 previously approved these changes Jul 23, 2024
Comment thread aperturedb/__init__.py Resolved
@gsaluja9
gsaluja9 self-requested a review July 24, 2024 14:26

@drewaogle drewaogle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bovlb
bovlb merged commit bb0f7d8 into develop Jul 24, 2024
drewaogle added a commit that referenced this pull request Jul 25, 2024
* Colab logging (#455)

* Trying setting log level to minumum

* test

* fix

* Update aperturedb/__init__.py

Co-authored-by: Drew Ogle <[email protected]>

* fmt

* Fix for Kaggle issue

---------

Co-authored-by: Drew Ogle <[email protected]>

* expand protobuf support to 4.x (#456)

* expand protobuf support to 4.x
* add shim file
* try to make it performant
* make queryMessage wrap ParseFromString

* Version bump: 0.4.30 to 0.4.31

---------

Co-authored-by: bovlb <[email protected]>
Co-authored-by: Drew Ogle <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@luisremis
luisremis deleted the colab-logging branch July 31, 2024 02:09
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.

3 participants