File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1313
1414## New Features
1515
16- <!-- Here goes the main new features and examples or instructions on how to use them -->
16+ - ` LoggingConfigUpdatingActor `
17+
18+ * Added a new ` name ` argument to the constructor to be able to override the actor's name.
1719
1820## Bug Fixes
1921
Original file line number Diff line number Diff line change @@ -134,13 +134,16 @@ async def run() -> None:
134134 def __init__ (
135135 self ,
136136 * ,
137+ name : str | None = None ,
137138 config_recv : Receiver [Mapping [str , Any ]],
138139 log_format : str = "%(asctime)s %(levelname)-8s %(name)s:%(lineno)s: %(message)s" ,
139140 log_datefmt : str = "%Y-%m-%dT%H:%M:%S%z" ,
140141 ):
141142 """Initialize this instance.
142143
143144 Args:
145+ name: The name of this actor. If `None`, `str(id(self))` will be used. This
146+ is used mostly for debugging purposes.
144147 config_recv: The receiver to listen for configuration changes.
145148 log_format: Use the specified format string in logs.
146149 log_datefmt: Use the specified date/time format in logs.
@@ -151,7 +154,7 @@ def __init__(
151154 in the application (through a previous `basicConfig()` call), then the format
152155 settings specified here will be ignored.
153156 """
154- super ().__init__ ()
157+ super ().__init__ (name = name )
155158 self ._config_recv = config_recv
156159
157160 # Setup default configuration.
You can’t perform that action at this time.
0 commit comments