Save output of mysqlmon tests
Before the tests truncate the log, it can be copied to a backup file. This allows the whole log to be inspected after the test is complete.
This commit is contained in:
parent
288fbc8c33
commit
dad4f55ee6
@ -22,7 +22,8 @@ void get_output(TestConnections& test)
|
||||
{
|
||||
test.tprintf("MaxScale output:");
|
||||
}
|
||||
output = test.maxscales->ssh_node_output(0, "cat /var/log/maxscale/maxscale.log && "
|
||||
output = test.maxscales->ssh_node_output(0,
|
||||
"cat /var/log/maxscale/maxscale.log | tee -a /var/log/maxscale/maxscale_backup.log && "
|
||||
"sudo truncate -s 0 /var/log/maxscale/maxscale.log",
|
||||
true, &ec);
|
||||
if (test.verbose)
|
||||
|
Loading…
x
Reference in New Issue
Block a user