Skip to content

Commit

Permalink
cout
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Feb 6, 2025
1 parent a325244 commit b60a36a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/ylt/coro_io/coro_file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ inline bool open_native_async_file(File &file, Executor &executor,
static_cast<asio::file_base::flags>(open_flags));
}
} catch (std::exception &ex) {
std::cout << "line " << __LINE__ << " coro_file open failed" << ex.what()
ELOG_INFO << "line " << __LINE__ << " coro_file open failed" << ex.what()
<< "\n";
return false;
}
Expand Down Expand Up @@ -357,7 +357,7 @@ class basic_seq_coro_file {
[this, flags, filepath]() mutable {
frw_seq_file_.open(filepath.data(), flags);
if (!frw_seq_file_.is_open()) {
std::cout << "line " << __LINE__ << " coro_file open failed "
ELOG_INFO << "line " << __LINE__ << " coro_file open failed "
<< filepath << "\n";
std::cerr << "Error: " << strerror(errno);
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/coro_io/tests/test_client_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async_simple::coro::Lazy<bool> event(
works.emplace_back(backer(pool, op).via(coro_io::get_global_executor()));
}
auto res = co_await collectAll(std::move(works));
std::cout << "HI" << std::endl;
ELOG_INFO << "HI";
for (auto &e : res) {
if (!e.value()) {
co_return false;
Expand Down Expand Up @@ -186,7 +186,7 @@ TEST_CASE("test reconnect retry wait time exclude reconnect cost time") {
CHECK(res);
CHECK(pool->free_client_count() == 100);
auto dur = std::chrono::steady_clock::now() - tp;
std::cout << dur.count() << std::endl;
ELOG_INFO << dur.count();
CHECK((dur >= 500ms && dur <= 799ms));
server.stop();
co_return;
Expand Down

0 comments on commit b60a36a

Please sign in to comment.