diff --git a/tests/mock_logger.cpp b/tests/mock_logger.cpp index 62054ed822..d37ed0556b 100644 --- a/tests/mock_logger.cpp +++ b/tests/mock_logger.cpp @@ -17,6 +17,8 @@ #include "mock_logger.h" +#include + #include namespace mp = multipass; @@ -50,7 +52,9 @@ mpt::MockLogger::Scope::~Scope() void mpt::MockLogger::expect_log(mpl::Level lvl, const std::string& substr, const Cardinality& times) { - EXPECT_CALL(*this, log(lvl, _, HasSubstr(substr))).Times(times); + EXPECT_CALL(*this, log(lvl, _, HasSubstr(substr))) + .Times(times) + .Description(fmt::format("log(level: {}, substr: '{}')", logging::as_string(lvl), substr)); } void mpt::MockLogger::screen_logs(mpl::Level lvl)