@@ -104,19 +104,19 @@ get_used_fd({unix, _}, State0) ->
104104% % you will see a list of handles of various types, including network sockets
105105% % shown as file handles to \Device\Afd.
106106get_used_fd ({win32 , _ }, State0 ) ->
107+ MissingHandleMsg = " Could not execute handle.exe, please install from "
108+ " https://learn.microsoft.com/en-us/sysinternals/downloads/handle" ,
107109 Pid = os :getpid (),
108110 case os :find_executable (" handle.exe" ) of
109111 false ->
110- State1 = log_fd_warning_once (" Could not find handle.exe, using powershell to determine handle count " , [], State0 ),
112+ State1 = log_fd_warning_once (MissingHandleMsg , [], State0 ),
111113 {State1 , 0 };
112114 HandleExe ->
113115 Args = [" /accepteula" , " -s" , " -p" , Pid ],
114116 {ok , HandleExeOutput } = rabbit_misc :win32_cmd (HandleExe , Args ),
115117 case HandleExeOutput of
116118 [] ->
117- State1 = log_fd_warning_once (" Could not execute handle.exe, "
118- " please install from "
119- " https://learn.microsoft.com/en-us/sysinternals/downloads/handle" , [], State0 ),
119+ State1 = log_fd_warning_once (MissingHandleMsg , [], State0 ),
120120 {State1 , 0 };
121121 _ ->
122122 case find_files_line (HandleExeOutput ) of
0 commit comments