Skip to content

Commit f7d3df2

Browse files
committed
[IEDriver] Logging the correct browser mode after process launch
1 parent 9f002a2 commit f7d3df2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/iedriver/BrowserFactory.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ DWORD BrowserFactory::LaunchBrowserProcess(std::string* error_message) {
212212
}
213213
} else {
214214
::WaitForInputIdle(proc_info.hProcess, 2000);
215-
LOG(DEBUG) << "IE launched successfully with process ID " << process_id;
215+
std::string browser_launched = this->edge_ie_mode_ ? "Edge in IE Mode" : "IE";
216+
LOG(DEBUG) << browser_launched << " launched successfully with process ID " << process_id;
216217
std::vector<wchar_t> image_buffer(MAX_PATH);
217218
int buffer_count = ::GetProcessImageFileName(proc_info.hProcess, &image_buffer[0], MAX_PATH);
218219
std::wstring full_image_path = &image_buffer[0];
@@ -425,7 +426,7 @@ void BrowserFactory::LaunchEdgeInIEMode(PROCESS_INFORMATION* proc_info,
425426
executable_and_url.append(L" ");
426427
executable_and_url.append(this->initial_browser_url_);
427428

428-
LOG(TRACE) << "IE starting command line is: '"
429+
LOG(TRACE) << "Edge in IE Mode starting command line is: '"
429430
<< LOGWSTRING(executable_and_url) << "'.";
430431

431432
LPWSTR command_line = new WCHAR[executable_and_url.size() + 1];

0 commit comments

Comments
 (0)