From d267a3bdd70ee341ac4b3e209da86ff6d17e84d4 Mon Sep 17 00:00:00 2001 From: Dylan Mikus Date: Wed, 10 Feb 2016 22:21:26 +0000 Subject: [PATCH] Tweaks to log verbosity for some messages Changed some `ilog` messages to log to INFO or debug to limit the verbosity of our log files. --- daemon/recording.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/daemon/recording.c b/daemon/recording.c index f68ff7375..1a91ee46c 100644 --- a/daemon/recording.c +++ b/daemon/recording.c @@ -127,6 +127,9 @@ int detect_setup_recording(struct call *call, str recordcall) { */ int set_record_call(struct call *call, str recordcall) { if (!str_cmp(&recordcall, "yes")) { + if (call->record_call == FALSE) { + ilog(LOG_NOTICE, "Turning on call recording."); + } call->record_call = TRUE; if (call->recording == NULL) { call->recording = g_slice_alloc0(sizeof(struct recording)); @@ -135,6 +138,9 @@ int set_record_call(struct call *call, str recordcall) { meta_setup_file(call->recording, call->callid); } } else if (!str_cmp(&recordcall, "no")) { + if (call->record_call == TRUE) { + ilog(LOG_NOTICE, "Turning off call recording."); + } call->record_call = FALSE; } else { ilog(LOG_INFO, "\"record-call\" flag %s is invalid flag.", recordcall.s); @@ -187,7 +193,7 @@ str *meta_setup_file(struct recording *recording, str callid) { recording->meta_filepath = NULL; } recording->meta_fp = mfp; - ilog(LOG_INFO, "Wrote metadata file to temporary path: %s", meta_filepath->s); + ilog(LOG_DEBUG, "Wrote metadata file to temporary path: %s", meta_filepath->s); return meta_filepath; } }