From 11475f4fe740cccdfea459ebeabdca8cb94dc911 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Wed, 20 Jul 2016 09:15:26 -0400 Subject: [PATCH] journal: improve debug log messages rbd-mirror debugging involved potentially thousands of journals concurrently running. The instance address will correlate log messages between journals. Signed-off-by: Jason Dillaman --- src/journal/Entry.cc | 2 +- src/journal/JournalMetadata.cc | 2 +- src/journal/JournalPlayer.cc | 2 +- src/journal/JournalRecorder.cc | 2 +- src/journal/JournalTrimmer.cc | 2 +- src/journal/Journaler.cc | 2 +- src/journal/ObjectPlayer.cc | 2 +- src/journal/ObjectRecorder.cc | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/journal/Entry.cc b/src/journal/Entry.cc index f88dea86358..257fa583af5 100644 --- a/src/journal/Entry.cc +++ b/src/journal/Entry.cc @@ -9,7 +9,7 @@ #define dout_subsys ceph_subsys_journaler #undef dout_prefix -#define dout_prefix *_dout << "Entry: " +#define dout_prefix *_dout << "Entry: " << this << " " namespace journal { diff --git a/src/journal/JournalMetadata.cc b/src/journal/JournalMetadata.cc index 63c67f21cdb..de46bd7ff0a 100644 --- a/src/journal/JournalMetadata.cc +++ b/src/journal/JournalMetadata.cc @@ -11,7 +11,7 @@ #define dout_subsys ceph_subsys_journaler #undef dout_prefix -#define dout_prefix *_dout << "JournalMetadata: " +#define dout_prefix *_dout << "JournalMetadata: " << this << " " namespace journal { diff --git a/src/journal/JournalPlayer.cc b/src/journal/JournalPlayer.cc index 30d6cdd36cf..750f936b20c 100644 --- a/src/journal/JournalPlayer.cc +++ b/src/journal/JournalPlayer.cc @@ -8,7 +8,7 @@ #define dout_subsys ceph_subsys_journaler #undef dout_prefix -#define dout_prefix *_dout << "JournalPlayer: " +#define dout_prefix *_dout << "JournalPlayer: " << this << " " namespace journal { diff --git a/src/journal/JournalRecorder.cc b/src/journal/JournalRecorder.cc index b4da4ff0067..4cbe7391ee9 100644 --- a/src/journal/JournalRecorder.cc +++ b/src/journal/JournalRecorder.cc @@ -8,7 +8,7 @@ #define dout_subsys ceph_subsys_journaler #undef dout_prefix -#define dout_prefix *_dout << "JournalRecorder: " +#define dout_prefix *_dout << "JournalRecorder: " << this << " " namespace journal { diff --git a/src/journal/JournalTrimmer.cc b/src/journal/JournalTrimmer.cc index a4a47fab76c..aef16c2fb0a 100644 --- a/src/journal/JournalTrimmer.cc +++ b/src/journal/JournalTrimmer.cc @@ -9,7 +9,7 @@ #define dout_subsys ceph_subsys_journaler #undef dout_prefix -#define dout_prefix *_dout << "JournalTrimmer: " +#define dout_prefix *_dout << "JournalTrimmer: " << this << " " namespace journal { diff --git a/src/journal/Journaler.cc b/src/journal/Journaler.cc index 27cc33845c0..c08a11b71de 100644 --- a/src/journal/Journaler.cc +++ b/src/journal/Journaler.cc @@ -19,7 +19,7 @@ #define dout_subsys ceph_subsys_journaler #undef dout_prefix -#define dout_prefix *_dout << "Journaler: " +#define dout_prefix *_dout << "Journaler: " << this << " " namespace journal { diff --git a/src/journal/ObjectPlayer.cc b/src/journal/ObjectPlayer.cc index 31939e9bb16..43adb5da5cd 100644 --- a/src/journal/ObjectPlayer.cc +++ b/src/journal/ObjectPlayer.cc @@ -8,7 +8,7 @@ #define dout_subsys ceph_subsys_journaler #undef dout_prefix -#define dout_prefix *_dout << "ObjectPlayer: " +#define dout_prefix *_dout << "ObjectPlayer: " << this << " " namespace journal { diff --git a/src/journal/ObjectRecorder.cc b/src/journal/ObjectRecorder.cc index 5972d899b13..0cf2fd1e8ea 100644 --- a/src/journal/ObjectRecorder.cc +++ b/src/journal/ObjectRecorder.cc @@ -10,7 +10,7 @@ #define dout_subsys ceph_subsys_journaler #undef dout_prefix -#define dout_prefix *_dout << "ObjectRecorder: " +#define dout_prefix *_dout << "ObjectRecorder: " << this << " " using namespace cls::journal;