Silence debugging commands

If verbose mode is not enabled, the exact commands don't need to be
printed.
This commit is contained in:
Markus Mäkelä 2018-02-14 12:07:15 +02:00
parent 3b2ec4ab5a
commit 5941f9d3b3
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -546,7 +546,10 @@ void TestConnections::process_template(int m, const char *template_name, const c
tprintf("Template file is %s\n", template_file);
sprintf(str, "cp %s maxscale.cnf", template_file);
tprintf("Executing '%s' command\n", str);
if (verbose)
{
tprintf("Executing '%s' command\n", str);
}
if (system(str) != 0)
{
tprintf("Error copying maxscale.cnf template\n");