Commit 244c892
dedup code related to tail_str in spawn_exit_monitor (#1922)
Summary:
Pull Request resolved: #1922
This block is duplicated in 4 if-else branches:
```
let tail_str = if stderr_tail.is_empty() {
None
} else {
Some(stderr_tail.join("\n"))
};
```
This diff extracts it out and log it in the `tail` field.
Reviewed By: thedavekwon
Differential Revision: D87344528
fbshipit-source-id: 141926a4a001e23f982279cd7eedda2aa33d5e5a1 parent 2760b20 commit 244c892
1 file changed
+13
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1722 | 1728 | | |
1723 | 1729 | | |
1724 | 1730 | | |
1725 | 1731 | | |
1726 | 1732 | | |
1727 | 1733 | | |
1728 | 1734 | | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
| 1735 | + | |
1737 | 1736 | | |
1738 | | - | |
| 1737 | + | |
1739 | 1738 | | |
1740 | 1739 | | |
1741 | 1740 | | |
1742 | | - | |
1743 | | - | |
1744 | | - | |
1745 | | - | |
1746 | | - | |
1747 | 1741 | | |
1748 | 1742 | | |
1749 | 1743 | | |
| |||
1754 | 1748 | | |
1755 | 1749 | | |
1756 | 1750 | | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | 1751 | | |
1761 | 1752 | | |
1762 | 1753 | | |
1763 | 1754 | | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
1769 | | - | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1770 | 1759 | | |
1771 | 1760 | | |
1772 | 1761 | | |
1773 | 1762 | | |
1774 | 1763 | | |
1775 | 1764 | | |
1776 | 1765 | | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
1782 | | - | |
| 1766 | + | |
1783 | 1767 | | |
1784 | 1768 | | |
1785 | 1769 | | |
| |||
0 commit comments