File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ class AppManagement:
4646 logger : Logger
4747 """Standard python logger named ``AppDaemon._app_management``
4848 """
49+ name : str = "_app_management"
4950 error : Logger
5051 """Standard python logger named ``Error``
5152 """
@@ -82,7 +83,7 @@ class AppManagement:
8283 def __init__ (self , ad : "AppDaemon" ):
8384 self .AD = ad
8485 self .ext = self .AD .config .ext
85- self .logger = ad .logging .get_child ("_app_management" )
86+ self .logger = ad .logging .get_child (self . name )
8687 self .error = ad .logging .get_error ()
8788 self .diag = ad .logging .get_diag ()
8889 self .filter_files = {}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class State:
2828
2929 AD : "AppDaemon"
3030 logger : Logger
31+ name : str = "_state"
3132 state : dict [str , dict [str , Any ]]
3233
3334 app_added_namespaces : Set [str ]
@@ -36,7 +37,7 @@ def __init__(self, ad: "AppDaemon"):
3637 self .AD = ad
3738
3839 self .state = {"default" : {}, "admin" : {}, "rules" : {}}
39- self .logger = ad .logging .get_child ("_state" )
40+ self .logger = ad .logging .get_child (self . name )
4041 self .error = ad .logging .get_error ()
4142 self .app_added_namespaces = set ()
4243
You can’t perform that action at this time.
0 commit comments