Skip to content

Commit 6fb2e41

Browse files
committed
add further details about expected logs
1 parent a490575 commit 6fb2e41

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

export_module/readme.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ pm2 list
3838
tail -100 /data/python-mapswipe-workers/export_module/export_data.log
3939
```
4040

41+
The logs of the script in pm2 should look like this:
42+
```
43+
05-25 12:12:39 WARNING start project results export for project: 13517
44+
05-25 12:12:39 WARNING project is in firebase projects table and has all attributes: 13517
45+
05-25 12:12:39 WARNING project exists in firebase: 13517
46+
05-25 12:12:40 WARNING got results information from mysql for project: 13517. rows = 15727
47+
05-25 12:12:40 WARNING wrote results to json file for project: 13517. outfile = /var/www/html/projects/13517.json
48+
05-25 12:12:40 WARNING start project results export for project: 13509
49+
...
50+
05-25 12:12:45 WARNING got user information from firebase.
51+
05-25 12:12:45 WARNING exported users.json file: /var/www/html/users.json
52+
05-25 12:12:45 WARNING computed stats based on user information from firebase.
53+
05-25 12:12:45 WARNING exported stats.json file: /var/www/html/stats.json
54+
05-25 12:12:45 WARNING finished users and stats export, 1.052970 sec.
55+
```
56+
4157

4258
## Submodules
4359
### Export Project Results

import_module/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ pm2 list
3737
tail -100 /data/python-mapswipe-workers/export_module/export_data.log
3838
```
3939

40+
The logs should look like this:
41+
```
42+
05-25 12:11:29 WARNING There are no projects to import.
43+
```
44+
4045
## About the Grouping Algorithm
4146
If the terms *group*, *task* and *project* sound not familiar to you in the context of MapSwipe have a look at the [MapSwipe data model](../mapswipe_data_model.md) first.
4247

update_module/readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ pm2 list
3333
tail -100 /data/python-mapswipe-workers/update_module/project_update.log
3434
```
3535

36+
The logs should look like this:
37+
```
38+
...
39+
05-25 12:15:11 DEBUG "GET /projects/13513/progress.json?shallow=true HTTP/1.1" 200 2
40+
05-25 12:15:11 WARNING update progress in firebase for project 13513 successful
41+
05-25 12:15:11 WARNING log progress to file for project 13513 successful
42+
05-25 12:15:11 WARNING finished project progress update for projects: ['13516', '13517', '13518', '13509', '13513'], 43.408776 sec.
43+
05-25 12:15:11 WARNING update finished and max iterations reached. sleeping now for 900 sec.
44+
```
3645

3746
## Submodules
3847
### Update Project Contributors

0 commit comments

Comments
 (0)