Skip to content

Commit cb9bf04

Browse files
committed
Filename added to log saying session is invalid for easier find.
1 parent f5ed721 commit cb9bf04

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "berlin-lea-performance-monitor",
3-
"version": "1.12.1",
3+
"version": "1.12.2",
44
"author": "David Leclerc",
55
"main": "./src/index.ts",
66
"scripts": {

src/models/sessions/SessionHistoryBuilder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { getRange } from '../../utils/math';
99
import SessionBucket from '../buckets/SessionBucket';
1010
import Release from '../Release';
1111
import { RELEASE_ZERO } from '../../constants';
12+
import { formatDateForFilename } from '../../utils/locale';
1213

1314
const TEXTS = {
1415
SessionStart: '[START]',
@@ -67,7 +68,7 @@ class SessionHistoryBuilder {
6768
const errorCount = session.getErrors().length;
6869
if (errorCount > 1) {
6970
const sessionStartLine = session.getLogs()[0].line;
70-
logger.warn(`Invalid session [${session.getStartTime()} @${sessionStartLine}] with ${errorCount} > 1 errors found`);
71+
logger.warn(`Invalid session [${formatDateForFilename(session.getStartTime()!)} @${sessionStartLine}] with ${errorCount} > 1 errors found`);
7172
return;
7273
}
7374

0 commit comments

Comments
 (0)