Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using API assertions and converting them in SWIG #373

Merged
merged 10 commits into from
Mar 24, 2023
Prev Previous commit
Next Next commit
global_logger: Use API assertion
Switch to using API assertion when checking any existing `GlobalLogger` instance in ctor.
  • Loading branch information
jan-kolarik committed Mar 17, 2023
commit 43cd093f427216d6e1457be42ac41fefc7f9adbb
2 changes: 1 addition & 1 deletion libdnf/logger/global_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static GlibLogHandler * librepo_logger{nullptr};
static GlibLogHandler * libmodulemd_logger{nullptr};

GlobalLogger::GlobalLogger() {
libdnf_assert(librepo_logger == nullptr, "Only one GlobalLogger can exist at a time");
libdnf_user_assert(librepo_logger == nullptr, "Only one GlobalLogger can exist at a time");
}

GlobalLogger::~GlobalLogger() {
Expand Down