Skip to content

Commit 908d15a

Browse files
committed
Filter logstore_standard_log by origin
1 parent d83ab54 commit 908d15a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

xapi_stmt_gen/xapi_stmt_gen/config/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ const config = {
22
url: 'http://learninglocker',
33
limit: 500,
44
chunkSize: 100,
5+
filter: {
6+
logstoreStandardLog: {
7+
origin: {
8+
exclude: []
9+
}
10+
}
11+
},
512
db: {
613
// LMS database connection settings
714
lms: {

xapi_stmt_gen/xapi_stmt_gen/generator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3546,6 +3546,9 @@ async function findLogs(limit){
35463546
where: {
35473547
id: {
35483548
[Op.gt]: lastLogProcessed ? lastLogProcessed.objectid : -1
3549+
},
3550+
origin: {
3551+
[Op.notIn]: config.filter.logstoreStandardLog.origin.exclude
35493552
}
35503553
},
35513554
order: [['id', 'ASC']],

0 commit comments

Comments
 (0)