History

Add user activity logging

David Rowe committed 9 years ago

Commit 48caad11 parent 3de1c0a1 file · +9 −0Browse files

Showing the changes to scripts/developer (1 of 1 file). Show all

Unified · Split

scripts/developer/EZrecord.js+9−0
@@ -26,6 +26,12 @@ · 25 unmodified lines
2626 print(APP_NAME + ": " + message);
2727 }
2828
29+ function logDetails() {
30+ return {
31+ current_domain: location.placename
32+ };
33+ }
34+
2935 RecordingIndicator = (function () {
3036 // Displays "recording" overlay.
3137
@@ -169,6 +175,7 @@ · 137 unmodified lines
169175 log("Finish recording: " + filename);
170176 Recording.saveRecording(filename);
171177 recordingState = IDLE;
178+ UserActivityLogger.logAction("ezrecord_finish_recording", logDetails());
172179 }
173180
174181 function stopRecording() {
@@ -239,6 +246,8 @@ · 64 unmodified lines
239246 }
240247
241248 Controller.keyPressEvent.connect(onKeyPressEvent);
249+
250+ UserActivityLogger.logAction("ezrecord_run_script", logDetails());
242251 }
243252
244253 function tearDown() {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t