protect VLOG by use_logging

This commit is contained in:
Sergiu Deitsch 2021-11-18 00:01:33 +01:00
parent b79e18b78b
commit 65199ed0b8

View File

@ -2167,7 +2167,9 @@ static bool SendEmailInternal(const char*dest, const char *subject,
string cmd =
logmailer + " -s" +
ShellEscape(subject) + " " + ShellEscape(dest);
if (use_logging) {
VLOG(4) << "Mailing command: " << cmd;
}
FILE* pipe = popen(cmd.c_str(), "w");
if (pipe != NULL) {