Skip to content

Commit

Permalink
Reverting for now. Logging doesn't work in multithread
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulChristophel committed Dec 20, 2024
1 parent f1f332e commit c0ddc00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
5 changes: 0 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
0.19.5
======
* Improved logging


0.19.4
======

Expand Down
19 changes: 0 additions & 19 deletions relenv/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,6 @@
else:
SHEBANG_TPL = SHEBANG_TPL_MACOS

class SuppressSpinnerFilter(logging.Filter):
"""
Suppress log messages ending with specific spinner patterns.
"""
def filter(self, record):
spinner_patterns = ["] -", "] \\", "] |", "] /"]
return not any(pattern in record.getMessage() for pattern in spinner_patterns)


# Configure logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s,%(msecs)03d+0000 [%(levelname)-7s] %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)

# Add the custom filter to the root logger
logging.getLogger().addFilter(SuppressSpinnerFilter())

log = logging.getLogger(__name__)

class RelenvException(Exception):
Expand Down

0 comments on commit c0ddc00

Please sign in to comment.