| 1395 | } |
| 1396 | |
| 1397 | void TOPPASScene::logToolFailed() |
| 1398 | { |
| 1399 | TOPPASToolVertex* tv = qobject_cast<TOPPASToolVertex*>(QObject::sender()); |
| 1400 | if (tv) |
| 1401 | { |
| 1402 | String text = tv->getName(); |
| 1403 | String type = tv->getType(); |
| 1404 | if (!type.empty()) |
| 1405 | { |
| 1406 | text += " (" + type + ")"; |
| 1407 | } |
| 1408 | text += " failed!"; |
| 1409 | |
| 1410 | if (!gui_) |
| 1411 | { |
| 1412 | std::cout << '\n' << text << std::endl; |
| 1413 | } |
| 1414 | |
| 1415 | writeToLogFile_(text.toQString()); |
| 1416 | } |
| 1417 | } |
| 1418 | |
| 1419 | void TOPPASScene::logToolCrashed() |
| 1420 | { |