@@ -856,16 +856,16 @@ pub struct LoadedModulesInfo {
856
856
pub client_bootstrap : Vec < ClientBootstrapModuleInfo > ,
857
857
}
858
858
859
- #[ instrument( skip_all, fields( %name ) ) ]
859
+ #[ instrument( skip_all, fields( %plugin_name ) ) ]
860
860
async fn plugin_child_process (
861
- name : String ,
861
+ plugin_name : String ,
862
862
module_config : PluginConfig ,
863
863
cancellation_token : CancellationToken ,
864
864
) {
865
- let client_socket = ModuleRpcClient :: make_socket_path ( & name ) ;
866
- let server_socket = make_module_rpc_server_socket_path ( & name ) ;
865
+ let client_socket = ModuleRpcClient :: make_socket_path ( & plugin_name ) ;
866
+ let server_socket = make_module_rpc_server_socket_path ( & plugin_name ) ;
867
867
868
- info ! ( %client_socket, %server_socket, "starting plugin {name }" ) ;
868
+ info ! ( %client_socket, %server_socket, "starting plugin {plugin_name }" ) ;
869
869
870
870
let mut cmd = tokio:: process:: Command :: new ( & module_config. path ) ;
871
871
cmd. arg ( "run" ) ;
@@ -886,16 +886,16 @@ async fn plugin_child_process(
886
886
. await
887
887
}
888
888
889
- #[ instrument( skip_all, fields( %name ) ) ]
889
+ #[ instrument( skip_all, fields( %module_name ) ) ]
890
890
async fn module_child_process < Info : Serialize > (
891
- name : String ,
891
+ module_name : String ,
892
892
module_config : ModuleConfig < Info > ,
893
893
cancellation_token : CancellationToken ,
894
894
) {
895
- let client_socket = ModuleRpcClient :: make_socket_path ( & name ) ;
896
- let server_socket = make_module_rpc_server_socket_path ( & name ) ;
895
+ let client_socket = ModuleRpcClient :: make_socket_path ( & module_name ) ;
896
+ let server_socket = make_module_rpc_server_socket_path ( & module_name ) ;
897
897
898
- info ! ( %client_socket, %server_socket, "starting module {name }" ) ;
898
+ info ! ( %client_socket, %server_socket, "starting module {module_name }" ) ;
899
899
900
900
lazarus_pit (
901
901
& module_config. path ,
@@ -973,7 +973,7 @@ async fn lazarus_pit(cmd: &Path, args: &[&str], cancellation_token: Cancellation
973
973
. code( )
974
974
. is_some_and( |c| c == INVALID_CONFIG_EXIT_CODE as i32 )
975
975
{
976
- error!( %id, "invalid config for plugin" ) ;
976
+ error!( %id, "invalid config for plugin or module " ) ;
977
977
cancellation_token. cancel( ) ;
978
978
}
979
979
}
0 commit comments