psychoJS.experimentLogger.setLevel(core.Logger.ServerLevel.{loggingLevel});

async function updateInfo() {{
  currentLoop = psychoJS.experiment;  // right now there are no loops
  expInfo['date'] = util.MonotonicClock.getDateStr();  // add a simple timestamp
  expInfo['expName'] = expName;
  expInfo['psychopyVersion'] = '{version}';
  expInfo['OS'] = window.navigator.platform;


  // store frame rate of monitor if we can measure it successfully
  expInfo['frameRate'] = psychoJS.window.getActualFrameRate();
  if (typeof expInfo['frameRate'] !== 'undefined')
    frameDur = 1.0 / Math.round(expInfo['frameRate']);
  else
    frameDur = 1.0 / 60.0; // couldn't get a reliable measure so guess

  // add info from the URL:
  util.addInfoFromUrl(expInfo);
  {setRedirectURL}

  
  psychoJS.experiment.dataFileName = (("." + "/") + {filename});
  psychoJS.experiment.field_separator = {field_separator};


  return Scheduler.Event.NEXT;
}}
