constructs complete log messages before printing
detects invalid requests (empty socket data)