1
0
Fork 0

noise reduction: only print file names if --log-level is at least "info"

This commit is contained in:
mfranz 2006-02-17 22:20:15 +00:00
parent dc6ab58eaf
commit f9089e95d6

View file

@ -58,7 +58,7 @@ chatter_update = func {
if ( getprop("/sim/sound/atc-chatter") ) {
# go through the motions, but only schedule the message to play
# if atc-chatter is enabled.
print("update atc chatter ", chatter_list[chatter_index] );
printlog("info", "update atc chatter ", chatter_list[chatter_index] );
fgcommand("play-audio-message", props.Node.new(tmpl) );
}
} else {
@ -79,7 +79,7 @@ nextChatter = func {
# of a random pacing
next_interval = chatter_min_interval
+ int(rand() * (chatter_max_interval - chatter_min_interval));
# print( "next chatter in ", next_interval, " seconds");
# printlog("info", "next chatter in ", next_interval, " seconds");
settimer(chatter_update, next_interval );
}
nextChatter();