Skip to content

Commit

Permalink
use () key instead if class for filter
Browse files Browse the repository at this point in the history
Signed-off-by: Hongpeng Guo <[email protected]>
  • Loading branch information
hongpeng-guo committed Oct 7, 2024
1 parent 58bbf5d commit e4d8b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/ray/train/_internal/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
RAY_TRAIN_LOG_CONFIG_PATH = os.environ.get(RAY_TRAIN_LOG_CONFIG_PATH_ENV)


class HiddenRecordFilter:
class HiddenRecordFilter(logging.Filter):
"""Filters out log records with the "hide" attribute set to True.
This filter allows you to override default logging behavior. For example, if errors
Expand Down
2 changes: 1 addition & 1 deletion python/ray/train/_internal/logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ filters:
console_filter:
(): ray.train._internal.logging.HiddenRecordFilter
core_context_filter:
class: ray._private.ray_logging.filters.CoreContextFilter
(): ray._private.ray_logging.filters.CoreContextFilter

handlers:
file:
Expand Down

0 comments on commit e4d8b63

Please sign in to comment.