Skip to content

Commit 1744939

Browse files
committed
linter.....
1 parent 8c372cc commit 1744939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viam/sdk/log/logger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void Logger::init_logging() {
113113
boost::log::core::get()->add_global_attribute("TimeStamp",
114114
boost::log::attributes::local_clock());
115115

116-
boost::log::formatter fmt =
116+
const boost::log::formatter fmt =
117117
boost::log::expressions::stream
118118
<< boost::log::expressions::format_date_time<boost::posix_time::ptime>(
119119
"TimeStamp", "%Y--%m--%d %H:%M:%S")
@@ -142,7 +142,7 @@ void Logger::disable_console_logging() {
142142
namespace log_detail {
143143

144144
boost::string_view trim_filename(const char* file) {
145-
boost::string_view result(file);
145+
const boost::string_view result(file);
146146
const std::size_t second_last = result //
147147
.substr(0, result.find_last_of('/'))
148148
.find_last_of('/');

0 commit comments

Comments
 (0)