protect VLOG by use_logging
This commit is contained in:
parent
b79e18b78b
commit
65199ed0b8
@ -2167,7 +2167,9 @@ static bool SendEmailInternal(const char*dest, const char *subject,
|
||||
string cmd =
|
||||
logmailer + " -s" +
|
||||
ShellEscape(subject) + " " + ShellEscape(dest);
|
||||
VLOG(4) << "Mailing command: " << cmd;
|
||||
if (use_logging) {
|
||||
VLOG(4) << "Mailing command: " << cmd;
|
||||
}
|
||||
|
||||
FILE* pipe = popen(cmd.c_str(), "w");
|
||||
if (pipe != NULL) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user