Merge pull request 'Update logger config and create a session usermapping (fix #178 and fix #188)' (#206) from frontend/logger-update into main
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #206
This commit is contained in:
commit
94070d8f75
1 changed files with 8 additions and 5 deletions
|
@ -32,11 +32,8 @@ export default function Study() {
|
|||
|
||||
useEffect(() => {
|
||||
_logger.current = new Logger({
|
||||
//inputs: ["cursor", "wheel", "keyboard", "touch"],
|
||||
inputs: ["keyboard"],
|
||||
// apiUrl: "https://behavior.marcocamenzind.ch",
|
||||
apiUrl: "http://localhost:5000",
|
||||
logToConsole: true,
|
||||
inputs: ["keyboard", "wheel", "cursor", "custom"],
|
||||
apiUrl: "https://behavior.marcocamenzind.ch",
|
||||
});
|
||||
_logger.current.init();
|
||||
authFetch("/api/username", {
|
||||
|
@ -112,6 +109,12 @@ export default function Study() {
|
|||
receiveRandomPassword();
|
||||
setState(STATES.NORMAL);
|
||||
handleLoggerOn();
|
||||
// map username and session with the logs
|
||||
_logger.current.logCustomEvent(
|
||||
{
|
||||
name: serverUsername,
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
const resetInputValues = () => {
|
||||
|
|
Loading…
Reference in a new issue