Add warning log for actually receiving a request from socket 82/318082/2
authorTomasz Swierczek <t.swierczek@samsung.com>
Tue, 24 Sep 2024 10:00:55 +0000 (12:00 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Fri, 27 Sep 2024 10:26:48 +0000 (12:26 +0200)
Needed by VD to investigate few issues with performance on slower boards.

Change-Id: I3d0ba83303b4897212afe1dd100eef26a160f27a

src/server/main/socket-manager.cpp

index 63e493df852b32d823f140f6054763fe7d0bdee9..a9294f98ae62f553ac52686609e4688149777b77 100644 (file)
@@ -201,9 +201,11 @@ void SocketManager::ReadyForRead(int sock) {
                     }
 
                     FD_CLR(sock, &m_readSet); // the one and only call on this socket is complete
+                    Credentials creds = Credentials::getCredentialsFromSocket(sock);
+                    LogWarning("Received message from PID " << creds.pid << " with prio: " << static_cast<int>(priority));
                     m_service->PutEvent(static_cast<Priority>(priority),
                             ConnectionID{sock, desc.counter},
-                            Credentials::getCredentialsFromSocket(sock),
+                            std::move(creds),
                             std::move(buffer));
                     break;
             }