blob: 8770306fdd6ae5d59e1f9a8bf084a1a49c8eca38 (
plain)
1
2
3
4
5
6
7
8
9
|
import { formatDate } from '../utils';
const mapTrace = ({ timestamp = null, pod = '', message = '' }) =>
[timestamp ? formatDate(timestamp) : '', pod, message].join(' | ');
export const trace = state => state.logs.lines.map(mapTrace).join('\n');
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
|