summaryrefslogtreecommitdiffstats
path: root/src/Log.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-05-30 14:48:04 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-05-30 14:48:04 +0200
commit4e870a98a8a2e589f7e1487770665afa32d2cb9b (patch)
tree36c014fb3429837b1f5ed460729eeebf8672a52d /src/Log.cpp
parent13c6583d4ee44e5b9785385e528de695e4744d11 (diff)
downloaddabmod-4e870a98a8a2e589f7e1487770665afa32d2cb9b.tar.gz
dabmod-4e870a98a8a2e589f7e1487770665afa32d2cb9b.tar.bz2
dabmod-4e870a98a8a2e589f7e1487770665afa32d2cb9b.zip
Avoid variable shadowing function warnings
Diffstat (limited to 'src/Log.cpp')
-rw-r--r--src/Log.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index 15c02d0..3c5b181 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -47,7 +47,7 @@ void Logger::register_backend(std::shared_ptr<LogBackend> backend)
}
-void Logger::log(log_level_t level, const char* fmt, ...)
+void Logger::log(log_level_t lvl, const char* fmt, ...)
{
int size = 100;
std::string str;
@@ -67,12 +67,12 @@ void Logger::log(log_level_t level, const char* fmt, ...)
size *= 2;
}
- logstr(level, move(str));
+ logstr(lvl, move(str));
}
-void Logger::logstr(log_level_t level, std::string&& message)
+void Logger::logstr(log_level_t lvl, std::string&& message)
{
- log_message_t m(level, move(message));
+ log_message_t m(lvl, move(message));
m_message_queue.push(move(m));
}
@@ -108,9 +108,9 @@ void Logger::io_process()
}
}
-LogLine Logger::level(log_level_t level)
+LogLine Logger::level(log_level_t lvl)
{
- return LogLine(this, level);
+ return LogLine(this, lvl);
}
LogToFile::LogToFile(const std::string& filename) : name("FILE")