FS-8898 log setVariable at debug, so you can tell what variables are being set with ease from scripts

This commit is contained in:
Brian West 2016-03-09 20:33:52 -06:00
parent 56332c92c8
commit 49b9d7f9ff
1 changed files with 1 additions and 0 deletions

View File

@ -740,6 +740,7 @@ SWITCH_DECLARE(void) CoreSession::setVariable(char *var, char *val)
{
this_check_void();
sanity_check_noreturn;
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "CoreSession::setVariable('%s', '%s')\n", var, val);
switch_channel_set_variable_var_check(channel, var, val, SWITCH_FALSE);
}