| 131 | } |
| 132 | |
| 133 | void CoreProcess::daemonIpcClientConnected() |
| 134 | { |
| 135 | applyLogLevel(); |
| 136 | |
| 137 | const auto logPath = requestDaemonLogPath(); |
| 138 | if (logPath.isEmpty()) { |
| 139 | qWarning() << "daemon no log path"; |
| 140 | return; |
| 141 | } |
| 142 | |
| 143 | qDebug() << "daemon log path:" << logPath; |
| 144 | if (m_daemonFileTail) { |
| 145 | m_daemonFileTail->setWatchedFile(logPath); |
| 146 | } else { |
| 147 | m_daemonFileTail = new FileTail(logPath, this); |
| 148 | connect(m_daemonFileTail, &FileTail::newLine, this, &CoreProcess::handleLogLines); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | void CoreProcess::onProcessFinished(int exitCode, QProcess::ExitStatus) |
| 153 | { |
nothing calls this directly
no test coverage detected