Skip to content
Snippets Groups Projects
Commit 8425c95d authored by Hkorb's avatar Hkorb
Browse files

correct args in logger bindings

parent fad68e31
No related branches found
No related tags found
1 merge request!170Kernel templetization and efficiency improvements
...@@ -26,7 +26,7 @@ class Logger: ...@@ -26,7 +26,7 @@ class Logger:
@staticmethod @staticmethod
def add_stdout() -> None: ... def add_stdout() -> None: ...
@staticmethod @staticmethod
def enable_printed_rank_numbers() -> None: ... def enable_printed_rank_numbers(print: bool) -> None: ...
@staticmethod @staticmethod
def set_debug_level(level: int) -> None: ... def set_debug_level(level: int) -> None: ...
@staticmethod @staticmethod
......
...@@ -17,7 +17,7 @@ namespace logger ...@@ -17,7 +17,7 @@ namespace logger
}) })
.def_static("set_debug_level", &logging::Logger::setDebugLevel) .def_static("set_debug_level", &logging::Logger::setDebugLevel)
.def_static("time_stamp", &logging::Logger::timeStamp, py::arg("time_stamp")) .def_static("time_stamp", &logging::Logger::timeStamp, py::arg("time_stamp"))
.def_static("enable_printed_rank_numbers", &logging::Logger::enablePrintedRankNumbers); .def_static("enable_printed_rank_numbers", &logging::Logger::enablePrintedRankNumbers, py::arg("print"));
loggerModule.attr("log") = logging::out; loggerModule.attr("log") = logging::out;
py::enum_<logging::Logger::Level>(loggerModule, "Level") py::enum_<logging::Logger::Level>(loggerModule, "Level")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment