OSDN Git Service

btrfs: print transaction aborted messages with an error level
authorFilipe Manana <fdmanana@suse.com>
Wed, 30 Nov 2022 15:51:20 +0000 (15:51 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:59 +0000 (18:00 +0100)
commitb7af0635c87ff78d6bd523298ab7471f9ffd3ce5
tree36dc1a446ec1c1da15355052d4164221cfd3049a
parenta28135303a669917002f569aecebd5758263e4aa
btrfs: print transaction aborted messages with an error level

Currently we print the transaction aborted message with a debug level, but
a transaction abort is an exceptional event that indicates something went
wrong and it's useful to have it printed with an error level as it helps
analysing problems in a production environment, where debug level messages
are typically not logged. For example reports from syzbot never include
the transaction aborted message, since the log level on the test machines
is above the debug level.

So change the log level from debug to error.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/messages.h