Skip to content

Commit

Permalink
Make Logging local
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Feb 5, 2024
1 parent 31d79b3 commit bbf4579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pyceres/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ std::pair<std::string, int> GetPythonCallFrame() {
}

void BindLogging(py::module& m) {
py::class_<Logging> PyLogging(m, "logging");
py::class_<Logging> PyLogging(m, "logging", py::module_local());
PyLogging.def_readwrite_static("minloglevel", &FLAGS_minloglevel)
.def_readwrite_static("stderrthreshold", &FLAGS_stderrthreshold)
.def_readwrite_static("log_dir", &FLAGS_log_dir)
Expand Down

0 comments on commit bbf4579

Please sign in to comment.