Only log mux updates if detailed logging is enabled

This commit is contained in:
Andreas Öman 2009-08-30 13:40:48 +00:00
parent c5768174c9
commit 8696f3f61c

View file

@ -169,7 +169,9 @@ dvb_mux_create(th_dvb_adapter_t *tda, const struct dvb_mux_conf *dmc,
dvb_mux_save(tdmi);
dvb_mux_nicename(buf, sizeof(buf), tdmi);
tvhlog(LOG_NOTICE, "dvb", "Mux \"%s\" updated by %s", buf, source);
if(tda->tda_logging)
tvhlog(LOG_INFO, "dvb",
"Configuration for mux \"%s\" updated by %s", buf, source);
dvb_mux_notify(tdmi);
return NULL;
}