Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Sep 28, 2023
1 parent 14c7cc7 commit 154a8a0
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/re_types/definitions/rerun/archetypes/text_log.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace rerun.archetypes;

/// A log entry in a text log, comprised of a text body and its log level.
///
/// \example text_log_integration "Text log integration" image="https://static.rerun.io/text_log_integration/9737d0c986325802a9885499d6fcc773b1736488/1200w.png"
/// \example text_log_integration image="https://static.rerun.io/text_log_integration/9737d0c986325802a9885499d6fcc773b1736488/1200w.png"
table TextLog (
"attr.rust.derive": "PartialEq, Eq",
order: 100
Expand Down
8 changes: 7 additions & 1 deletion crates/re_types/src/archetypes/text_log.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion docs/content/reference/data_types/text_log.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion rerun_py/rerun_sdk/rerun/archetypes/text_log.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_py/rerun_sdk/rerun/logging_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LoggingHandler(logging.Handler):
logging.DEBUG: TextLogLevel.DEBUG,
}

def __init__(self, *, path_prefix: str | None = None):
def __init__(self, path_prefix: str | None = None):
"""
Initializes the logging handler with an optional path prefix.
Expand All @@ -45,7 +45,7 @@ def emit(self, record: logging.LogRecord) -> None:

level = self.LVL2NAME.get(record.levelno)
if level is None: # user-defined level
level = record.levelname
level = TextLogLevel(record.levelname)

# NOTE: will go to the most appropriate recording!
return log(ent_path, TextLog(record.getMessage(), level=level))

0 comments on commit 154a8a0

Please sign in to comment.