Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack authored and Jack committed Apr 10, 2020
1 parent 83ce8d0 commit 276f2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alvr_server/ClientConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ void ClientConnection::SendAudio(uint8_t *buf, int len, uint64_t presentationTim
void ClientConnection::SendHapticsFeedback(uint64_t startTime, float amplitude, float duration, float frequency, uint8_t hand)
{
if (!m_Socket->IsClientValid()) {
LogDriver("Skip sending audio packet because client is not connected.");
LogDriver("Skip sending haptics packet because client is not connected.");
return;
}
if (!m_Streaming) {
LogDriver("Skip sending audio packet because streaming is off.");
LogDriver("Skip sending haptics packet because streaming is off.");
return;
}
Log("Sending haptics feedback. startTime=%llu amplitude=%f duration=%f frequency=%f", startTime, amplitude, duration, frequency);
Expand Down

0 comments on commit 276f2af

Please sign in to comment.