From dc267e1bce4842f0f13c1f62c4223f5e42670118 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 22 Jun 2021 16:14:42 -0400 Subject: [PATCH] common/LogEntry: add some constness Signed-off-by: Sage Weil --- src/common/LogEntry.cc | 2 +- src/common/LogEntry.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/LogEntry.cc b/src/common/LogEntry.cc index e33d7e5a137..b1ba2e63e75 100644 --- a/src/common/LogEntry.cc +++ b/src/common/LogEntry.cc @@ -187,7 +187,7 @@ string clog_type_to_string(clog_type t) } } -void LogEntry::log_to_syslog(string level, string facility) +void LogEntry::log_to_syslog(string level, string facility) const { int min = string_to_syslog_level(level); int l = clog_type_to_syslog_level(prio); diff --git a/src/common/LogEntry.h b/src/common/LogEntry.h index 3ef600b900a..c6dd3265104 100644 --- a/src/common/LogEntry.h +++ b/src/common/LogEntry.h @@ -99,7 +99,7 @@ struct LogEntry { LogEntryKey key() const { return LogEntryKey(rank, stamp, seq); } - void log_to_syslog(std::string level, std::string facility); + void log_to_syslog(std::string level, std::string facility) const; void encode(ceph::buffer::list& bl, uint64_t features) const; void decode(ceph::buffer::list::const_iterator& bl); -- 2.47.3