X Tutup
Skip to content

Commit 7cb50cf

Browse files
committed
Display the process name in debug logs when showing command line
string.
1 parent 3cdc54f commit 7cb50cf

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
cef3-trunk
22
svn-win32-1.8.5
3+
cefpython.wiki

cefpython/cef3/subprocess/cefpython_app.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ void CefPythonApp::OnBeforeCommandLineProcessing(
4343
App_OnBeforeCommandLineProcessing_BrowserProcess(command_line);
4444
}
4545
#endif
46-
std::string logMessage = "Command line: ";
46+
std::string process_name = process_type.ToString();
47+
if (process_name.empty()) {
48+
process_name = "browser";
49+
}
50+
std::string logMessage = "Command line string for the ";
51+
logMessage.append(process_name);
52+
logMessage.append(" process: ");
4753
std::string clString = command_line->GetCommandLineString().ToString();
4854
logMessage.append(clString.c_str());
4955
// OnBeforeCommandLineProcessing() is called before

cefpython/wiki

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)
X Tutup