SB1 log.txt grows every 5 sec

A Anil Narotam 2 years 11 months ago
3 3 0

Hi,
I'm loading a remote app on the SB1 like
apps.js
{
    "name": "MyApp",
    "url": "http://192.168.2.109:8081/index.html",
    "icon": "default_app.png",
    "login": false
}
It's just one page but using signal.event to show the SB1's IP/MAC.
 
Now I've noticed that the log.txt in the userdrive is growing every 5 Secs with entries like these:
LOW: USER http://127.0.0.1:83/Application/www/index.html MSG : 2/onsignal|http://192.168.2.109:8081/index.html 0 2012-01-01 12:12:10
LOW: USER l MSG : 2/onsignal|http://127.0.0.1:83/Application/www/sapp/Fusion/AuthenticationDialog/Au… 0 2012-01-01 12:12:15
LOW: USER http://127.0.0.1:83/Application/www/index.html MSG : 2/onsignal|http://192.168.2.109:8081/index.html 0 2012-01-01 12:12:15
LOW: USER l MSG : 2/onsignal|http://127.0.0.1:83/Application/www/sapp/Fusion/AuthenticationDialog/Au… 0 2012-01-01 12:12:20
LOW: USER http://127.0.0.1:83/Application/www/index.html MSG : 2/onsignal|http://192.168.2.109:8081/index.html 0 2012-01-01 12:12:20
LOW: USER l MSG : 2/onsignal|http://127.0.0.1:83/Application/www/sapp/Fusion/AuthenticationDialog/Au… 0 2012-01-01 12:12:25
LOW: USER http://127.0.0.1:83/Application/www/index.html MSG : 2/onsignal|http://192.168.2.109:8081/index.html 0 2012-01-01 12:12:25
LOW: USER l MSG : 2/onsignal|http://127.0.0.1:83/Application/www/sapp/Fusion/AuthenticationDialog/Au… 0 2012-01-01 12:12:30
LOW: USER http://127.0.0.1:83/Application/www/index.html MSG : 2/onsignal|http://192.168.2.109:8081/index.html 0 2012-01-01 12:12:3
 
Now where do they come from and how do I disable them ?
 
Thanks
Dave

Please register or login to post a reply

3 Replies

V Vedsatx Saddvv

If you are just using the signal event to get the IP address, once you have that, you can stop receiving that event by setting the event to an empty string like this.
signal.signalEvent = "";

A Anil Narotam

Hi,

just did some testing:

config.xml is copied from \application\www to \prgram files\rhoelements.
the log.txt is deleted\recreated when the LogMaxSize is reached - my main worry - but this works as expected

Thanks

A Anil Narotam

Some more information:

OS version: 02.01.36
RhoElements version: 2.1.1.11
App Folder Version: 36.3
SB1 Shell version: 2.8.3

Excerpt from http://192.168.2.109:8081/index.html

function signal_status_sync() {

  

signal.refreshInterval = '200'; signal.signalEvent = "signalEvent(%json)";

    }

    function signalEvent(json){

  
var MyStr = 'Message:'+MyGate+'';

  
MyMAC = json.macAddress

  
MyIP = json.ipAddress

  
MyStr +=  ' IP: '+MyIP+' MAC: '+MyMAC+'';

  
document.getElementById('content').innerHTML = MyStr;

  
  signal.signalEvent = "";

  
}

   

The index.html loads - displays the IP/MAC and waits for a push notfication - displays it and waits fot the next push - Thats all .

The log.txt also grows without any app running - the following entries are added as soon the wlan is activated - wlan - wpa2-personal aes auth
LOW: USER l MSG : 2/onsignal|http://127.0.0.1:83/Application/www/sapp/Fusion/AuthenticationDialog/Au… 0 2012-01-01 12:12:25

Thanks

CONTACT
Can’t find what you’re looking for?