mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Logs: Add millisecond to timestamp in log line (#64372)
* add milliseconds to logrow * adjust tests to also have milliseconds
This commit is contained in:
parent
c7a1216cf6
commit
42c32504be
@ -81,9 +81,9 @@ describe('LogsSamplePanel', () => {
|
||||
render(
|
||||
<LogsSamplePanel {...createProps({ queryResponse: { data: [sampleDataFrame], state: LoadingState.Done } })} />
|
||||
);
|
||||
expect(screen.getByText('2022-02-22 04:28:11')).toBeInTheDocument();
|
||||
expect(screen.getByText('2022-02-22 04:28:11.352')).toBeInTheDocument();
|
||||
expect(screen.getByText('line1')).toBeInTheDocument();
|
||||
expect(screen.getByText('2022-02-22 09:42:50')).toBeInTheDocument();
|
||||
expect(screen.getByText('2022-02-22 09:42:50.991')).toBeInTheDocument();
|
||||
expect(screen.getByText('line2')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
@ -117,6 +117,7 @@ class UnThemedLogRow extends PureComponent<Props, State> {
|
||||
renderTimeStamp(epochMs: number) {
|
||||
return dateTimeFormat(epochMs, {
|
||||
timeZone: this.props.timeZone,
|
||||
defaultWithMS: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user