Index: remoting/host/host_event_logger_posix.cc |
diff --git a/remoting/host/host_event_logger_posix.cc b/remoting/host/host_event_logger_posix.cc |
index b29f9d26283fe2643eba2337028bf6b04a7ea37b..df4c7b47bc558cc5ddc91f23c8ea6f12cba493eb 100644 |
--- a/remoting/host/host_event_logger_posix.cc |
+++ b/remoting/host/host_event_logger_posix.cc |
@@ -37,6 +37,7 @@ class HostEventLoggerPosix : public HostEventLogger, public HostStatusObserver { |
const std::string& jid, |
const std::string& channel_name, |
const protocol::TransportRoute& route) OVERRIDE; |
+ virtual void OnStart(const std::string& xmpp_login) OVERRIDE; |
virtual void OnShutdown() OVERRIDE; |
private: |
@@ -56,7 +57,6 @@ HostEventLoggerPosix::HostEventLoggerPosix(ChromotingHost* host, |
application_name_(application_name) { |
openlog(application_name_.c_str(), 0, LOG_USER); |
host_->AddStatusObserver(this); |
- Log("Started"); |
} |
HostEventLoggerPosix::~HostEventLoggerPosix() { |
@@ -89,6 +89,11 @@ void HostEventLoggerPosix::OnClientRouteChange( |
} |
void HostEventLoggerPosix::OnShutdown() { |
+ Log("Host shut down"); |
+} |
+ |
+void HostEventLoggerPosix::OnStart(const std::string& xmpp_login) { |
+ Log("Host started for user: " + xmpp_login); |
} |
void HostEventLoggerPosix::Log(const std::string& message) { |