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
26 print(APP_NAME + ": " + message);26 print(APP_NAME + ": " + message);
27 }27 }
28 28
29 function logDetails() {
30 return {
31 current_domain: location.placename
32 };
33 }
34
29 RecordingIndicator = (function () {35 RecordingIndicator = (function () {
30 // Displays "recording" overlay.36 // Displays "recording" overlay.
31 37
@@ -169,6 +175,7 @@ · 137 unmodified lines
169 log("Finish recording: " + filename);175 log("Finish recording: " + filename);
170 Recording.saveRecording(filename);176 Recording.saveRecording(filename);
171 recordingState = IDLE;177 recordingState = IDLE;
178 UserActivityLogger.logAction("ezrecord_finish_recording", logDetails());
172 }179 }
173 180
174 function stopRecording() {181 function stopRecording() {
@@ -239,6 +246,8 @@ · 64 unmodified lines
239 }246 }
240 247
241 Controller.keyPressEvent.connect(onKeyPressEvent);248 Controller.keyPressEvent.connect(onKeyPressEvent);
249
250 UserActivityLogger.logAction("ezrecord_run_script", logDetails());
242 }251 }
243 252
244 function tearDown() {253 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