Skip to content

Commit

Permalink
Merge pull request #39 from apple1417/master
Browse files Browse the repository at this point in the history
fix log level specific printers
  • Loading branch information
apple1417 authored Jul 2, 2024
2 parents 153cb74 + 34e190b commit ac2b6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyunrealsdk/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ void register_per_log_level_printer(py::module_& logging,
logging.def(
func_name,
[](const py::args& args, const py::kwargs& kwargs) {
kwargs["file"] = logger;
py::print(*args, **kwargs);
py::print(*args, **kwargs,
"file"_a = py::cast(logger, py::return_value_policy::reference));
},
docstring.c_str());
}
Expand Down

0 comments on commit ac2b6ad

Please sign in to comment.