This is just some static backup of the original site, don't expect every link to work!

Changeset 273060


Ignore:
Timestamp:
Dec 3, 2014, 11:06:15 AM (8 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
74f246
Parents:
71a07e
Message:

cleanup logging id

Location:
content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content/vI_storage.js

    r71a07e r273060  
    3838
    3939    var storage = {
    40       initTime: null, // used to trace different objects of same type
     40      timeStampID: null, // used to trace different objects of same type
    4141      focusedElement: null,
    4242
     
    5151
    5252      clean: function () {
    53         Log.debug("clean. storageElem-time " + storage.initTime);
     53        Log.debug("clean");
    5454        storage.multipleRecipients = null;
    5555        storage.lastCheckedEmail = {};
     
    6868      replacement_functions: {
    6969        awSetInputAndPopupValue: function (inputElem, inputValue, popupElem, popupValue, rowNumber) {
    70           Log.debug("awSetInputAndPopupValue '" + inputElem.id + "'" + " storageElem-time " + storage.initTime);
     70          Log.debug("[" + storage.timeStampID + "] " + "awSetInputAndPopupValue '" + inputElem.id + "'");
    7171          storage.original_functions.awSetInputAndPopupValue(inputElem, inputValue, popupElem, popupValue, rowNumber);
    7272          storage.__updateVIdentityFromStorage(inputElem, storage.currentWindow);
     
    103103      currentWindow: null,
    104104      init: function () {
    105         if (!this.initTime)
    106           this.initTime = (new Date()).toLocaleTimeString();
     105        if (!this.timeStampID) {
     106          this.timeStampID = parseInt((new Date()).getTime() / 100) % 864000; // give object unified id (per day)
     107          Log = vI.setupLogging("virtualIdentity.storage[" + this.timeStampID + "]");
     108        }
    107109        if (!storage.initialized) {
    108           Log.debug("initializing storage request environment storageElem-time " + storage.initTime);
     110          Log.debug("initializing storage request environment");
    109111          storage._rdfDatasourceAccess = new vI.rdfDatasourceAccess();
    110112
     
    134136          storage.initialized = true;
    135137        } else {
    136           Log.debug("storage request environment already initialized storageElem-time " + storage.initTime);
     138          Log.debug("storage request environment already initialized");
    137139        }
    138140
     
    157159      firstUsedInputElement: null, // this stores the first Element for which a Lookup in the Storage was successfull
    158160      __updateVIdentityFromStorage: function (inputElement, currentWindow) {
    159         Log.debug("__updateVIdentityFromStorage storageElem-time " + storage.initTime);
     161        Log.debug("__updateVIdentityFromStorage");
    160162        if (!vI.vIprefs.get("storage")) {
    161163          Log.debug("Storage deactivated");
  • content/v_identity.js

    r71a07e r273060  
    3737
    3838    var main = {
    39       initTime: null,
     39      timeStampID: null,
    4040      _smartIdentity: null,
    4141
     
    217217      // initialization //
    218218      init: function () {
    219         if (!main.initTime)
    220           main.initTime = (new Date()).toLocaleTimeString();
    221         Log.debug("init set main-time " + main.initTime);
     219        if (!this.timeStampID) {
     220          this.timeStampID = parseInt((new Date()).getTime() / 100) % 864000; // give object unified id (per day)
     221          Log = vI.setupLogging("virtualIdentity.main[" + this.timeStampID + "]");
     222        }
    222223        window.removeEventListener('load', main.init, false);
    223224        window.removeEventListener('compose-window-init', main.init, true);
     
    247248
    248249      initSystemStage1: function () {
    249         Log.debug("initSystemStage1. main-time " + main.initTime);
     250        Log.debug("initSystemStage1.");
    250251        document.getElementById("virtualIdentityExtension_msgIdentityClone").init();
    251252        vI.statusmenu.init();
     
    254255
    255256      initSystemStage2: function () {
    256         Log.debug("initSystemStage2. main-time " + main.initTime);
     257        Log.debug("initSystemStage2.");
    257258        Log.debug("document.title=" + document.title + " gMsgCompose=" + gMsgCompose + " msgIdentityClone=" + document.getElementById("virtualIdentityExtension_msgIdentityClone"))
    258259        vI.initReplyTo(window);
Note: See TracChangeset for help on using the changeset viewer.