From 562cfc7d3f689c98210b1cc08e96c11d305345c9 Mon Sep 17 00:00:00 2001 From: dreamydb <52465096+dreamydb@users.noreply.github.com> Date: Tue, 2 Jul 2019 15:19:53 -0400 Subject: [PATCH] Print database name when logging to a file. --- bin/pt-kill | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pt-kill b/bin/pt-kill index dc0b67df3..fb7a3a10c 100755 --- a/bin/pt-kill +++ b/bin/pt-kill @@ -7330,7 +7330,7 @@ sub main { if ( $o->get('print') ) { printf "# %s %s %d (%s %d sec) %s\n", ts(time), $o->get('kill-query') ? 'KILL QUERY' : 'KILL', - $query->{Id}, ($query->{Command} || 'NULL'), $query->{Time}, + $query->{Id}, $query->{db}, ($query->{Command} || 'NULL'), $query->{Time}, ($query->{Info} || 'NULL'); } if ( $o->get('query-id') ) {