Skip to content

Commit

Permalink
Fix Python bindings for Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Feb 27, 2025
1 parent 5cffe1c commit 5d0b922
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/pyWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,11 @@ PYBIND11_MODULE(VIENNAPS_MODULE_NAME, module) {
.def_static("getInstance", &Logger::getInstance,
pybind11::return_value_policy::reference)
.def("addDebug", &Logger::addDebug)
.def("addTiming",
(Logger & (Logger::*)(std::string, double)) & Logger::addTiming)
.def("addTiming", (Logger & (Logger::*)(std::string, double, double)) &
.def("addTiming", (Logger & (Logger::*)(const std::string &, double)) &
Logger::addTiming)
.def("addTiming",
(Logger & (Logger::*)(const std::string &, double, double)) &
Logger::addTiming)
.def("addInfo", &Logger::addInfo)
.def("addWarning", &Logger::addWarning)
.def("addError", &Logger::addError, pybind11::arg("s"),
Expand Down

0 comments on commit 5d0b922

Please sign in to comment.