diff --git a/Aircraft/Generic/century2b.nas b/Aircraft/Generic/century2b.nas index effce4f0d..db1296a26 100644 --- a/Aircraft/Generic/century2b.nas +++ b/Aircraft/Generic/century2b.nas @@ -117,11 +117,11 @@ var apPower = func { # print("v_test = ", v_test); if (valueTest > 0.5) { # autopilot just powered up - print("CENTURY IIB power up"); + logprint(3, "CENTURY IIB power up"); apInit(); } elsif (valueTest < -0.5) { # autopilot just lost power - print("CENTURY IIB power lost"); + logprint(3, "CENTURY IIB power lost"); apInit(); # note: all button and knobs disabled in functions below } diff --git a/Aircraft/Generic/century3.nas b/Aircraft/Generic/century3.nas index b4c67eaac..4090a5fce 100644 --- a/Aircraft/Generic/century3.nas +++ b/Aircraft/Generic/century3.nas @@ -170,11 +170,11 @@ var apPower = func { # print("v_test = ", v_test); if (valueTest > 0.5) { # autopilot just powered up - print("CENTURYIII power up"); + logprint(3, "CENTURYIII power up"); apInit(); } elsif (valueTest < -0.5) { # autopilot just lost power - print("CENTURYIII power lost"); + logprint(3, "CENTURYIII power lost"); apInit(); # note: all button and knobs disabled in functions below } diff --git a/Aircraft/Generic/kap140.nas b/Aircraft/Generic/kap140.nas index 3a769106d..75ac1770e 100644 --- a/Aircraft/Generic/kap140.nas +++ b/Aircraft/Generic/kap140.nas @@ -254,12 +254,12 @@ var apPower = func { # print("v_test = ", v_test); if (valueTest > 0.5) { # autopilot just powered up - print("KAP140 power up"); + logprint(3, "KAP140 power up"); apInit(); altAlert(); } elsif (valueTest < -0.5) { # autopilot just lost power - print("KAP140 power lost"); + logprint(3, "KAP140 power lost"); apInit(); annunciatorAltAlert.getNode("state").setBoolValue(0); annunciatorBeep.getNode("state").setBoolValue(0); diff --git a/Aircraft/c172p/Nasal/c172-electrical.nas b/Aircraft/c172p/Nasal/c172-electrical.nas index e4f75a7b9..0133ae487 100644 --- a/Aircraft/c172p/Nasal/c172-electrical.nas +++ b/Aircraft/c172p/Nasal/c172-electrical.nas @@ -36,7 +36,7 @@ init_electrical = func { # Request that the update function be called next frame settimer(update_electrical, 0); - print("Electrical system initialized"); + logprint(3, "Electrical system initialized"); } diff --git a/Aircraft/c172p/Nasal/ki266.nas b/Aircraft/c172p/Nasal/ki266.nas index 35ba13d72..560932529 100644 --- a/Aircraft/c172p/Nasal/ki266.nas +++ b/Aircraft/c172p/Nasal/ki266.nas @@ -52,7 +52,8 @@ ki266.new = func(idx) { obj.update(); - print( "KI266 dme indicator #" ~ idx ~ " initialized" ); + # 3 = SG_INFO log level + logprint( 3, "KI266 dme indicator #" ~ idx ~ " initialized" ); return obj; }; diff --git a/Aircraft/c172p/Nasal/kma20.nas b/Aircraft/c172p/Nasal/kma20.nas index e8770762e..7f9ac209b 100644 --- a/Aircraft/c172p/Nasal/kma20.nas +++ b/Aircraft/c172p/Nasal/kma20.nas @@ -34,7 +34,7 @@ kma20.new = func(rootPath) { setlistener(rootPath ~ "/adf", func(v) {setprop("/instrumentation/adf/ident-audible", (v.getValue() != 0));}, 1); setlistener(rootPath ~ "/dme", func(v) {setprop("/instrumentation/dme/ident", (v.getValue() != 0));}, 1); setlistener(rootPath ~ "/mkr", func(v) {setprop("/instrumentation/marker-beacon/audio-btn",(v.getValue() != 0));}, 1); - print( "KMA20 audio panel initialized" ); + logprint(3, "KMA20 audio panel initialized" ); return obj; }; diff --git a/Nasal/environment.nas b/Nasal/environment.nas index 18fa81c4d..3e599e18b 100644 --- a/Nasal/environment.nas +++ b/Nasal/environment.nas @@ -70,7 +70,6 @@ var visibilityOverrideProp = nil; var auxvisibilityProp = nil; _setlistener("/sim/signals/nasal-dir-initialized", func { - print ("environment init"); visibilityProp = props.globals.initNode("/environment/config/presets/visibility-m", 0, "DOUBLE" ); visibilityOverrideProp = props.globals.initNode("/environment/config/presets/visibility-m-override", 0, "BOOL" ); auxvisibilityProp = props.globals.initNode("/local-weather/config/aux-max-vis-range-m", 0, "DOUBLE" );