Skip to content

Commit

Permalink
Fix linux build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dchapyshev committed Nov 17, 2023
1 parent ea5f199 commit ddf05a8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/host/user_session_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,14 @@ bool UserSessionManager::start(Delegate* delegate)
void UserSessionManager::onUserSessionEvent(
base::win::SessionStatus status, base::SessionId session_id)
{
LOG(LS_INFO) << "User session event (status=" << base::win::sessionStatusToString(status)
<< " session_id=" << session_id << ")";
std::string status_str;
#if defined(OS_WIN)
status_str = base::win::sessionStatusToString(status);
#else
status_str = base::numberToString(static_cast<int>(status));
#endif

LOG(LS_INFO) << "User session event (status=" << status_str << " session_id=" << session_id << ")";

// Send an event of each session.
for (const auto& session : sessions_)
Expand Down

0 comments on commit ddf05a8

Please sign in to comment.