(f: () => string)
| 55 | ].join(platformEol); |
| 56 | } |
| 57 | export function addToLogHeader(f: () => string) { |
| 58 | try { |
| 59 | logHeader.push(f().replace(/\r/g, "").replace(/\n/g, "\r\n")); |
| 60 | } catch { |
| 61 | // Don't log here; we may be trying to access things that aren't available yet. |
| 62 | } |
| 63 | } |