Use logprint in more places
Trying to reduce Nasal alert-level output for non-alert-y things.
This commit is contained in:
parent
0b6f9b9ab8
commit
986369f6ea
4 changed files with 7 additions and 8 deletions
|
@ -44,8 +44,8 @@ var volcano_manager = {
|
|||
var state = getprop("/environment/volcanoes/enable-volcanoes");
|
||||
me.active = state;
|
||||
if (state == 1)
|
||||
{print("Volcanic activity on.");}
|
||||
else {print ("Volcanic activity off.");}
|
||||
{logprint(LOG_INFO, "Volcanic activity on.");}
|
||||
else {logprint(LOG_DEBUG, "Volcanic activity off.");}
|
||||
},
|
||||
|
||||
set_state: func {
|
||||
|
@ -53,10 +53,10 @@ var volcano_manager = {
|
|||
me.active = state;
|
||||
if (state == 1)
|
||||
{
|
||||
print("Volcanic activity on.");
|
||||
logprint(LOG_INFO, "Volcanic activity on.");
|
||||
me.run(0);
|
||||
}
|
||||
else {print ("Volcanic activity off.");}
|
||||
else {logprint(LOG_INFO, "Volcanic activity off.");}
|
||||
|
||||
},
|
||||
|
||||
|
@ -80,7 +80,7 @@ var volcano_manager = {
|
|||
|
||||
if ((dist < me.dist_to_load) and (dist < visibility))
|
||||
{
|
||||
print("Loading ", me.volcano_array[index].name, ".");
|
||||
logprint(LOG_INFO, "Loading ", me.volcano_array[index].name, ".");
|
||||
me.volcano_array[index].set();
|
||||
me.volcano_array[index].loaded = 1;
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
var found = navinfo(type,getprop(propname));
|
||||
if( found == nil or size(found) == 0 ) {
|
||||
print(type, " ", getprop(propname), " NOT found");
|
||||
logrint(LOG_WARN, type, " ", getprop(propname), " NOT found");
|
||||
setprop(propname, "");
|
||||
setprop(freqpropname, "");
|
||||
return;
|
||||
|
|
|
@ -207,7 +207,6 @@
|
|||
<command>nasal</command>
|
||||
<script>
|
||||
var val = getprop("/sim/gui/dialogs/multiplay/protocol-version");
|
||||
print("MP Version :",val,":");
|
||||
if (val == "Visible to all") {
|
||||
setprop("/sim/multiplay/protocol-version", 1);
|
||||
}
|
||||
|
|
|
@ -276,7 +276,7 @@
|
|||
var metar = getprop("environment/metar/data");
|
||||
if( metar == nil or metar == "" ) metar = "NIL";
|
||||
metar = normalize_string(metar);
|
||||
printlog( "info", "new METAR: " ~ metar );
|
||||
logprint(LOG_DEBUG, "new METAR: " ~ metar );
|
||||
setprop( me.base ~ "/metar-string", metar );
|
||||
gui.dialog_update( "weather-conditions", "metar-string" );
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue