public function debugLog($msg) { if (!$this->getDebugMode() || !$msg) { return; } if ($msg[0] == '@') { $this->unit_of_work->addCommand('ConnectionEcho', [substr($msg, 1)]); } else { $this->client->echo($msg); } }