Skip to content

Commit

Permalink
changed log line for better readability (#6658)
Browse files Browse the repository at this point in the history
  • Loading branch information
holy-batman authored and jamesaimonetti committed Nov 5, 2020
1 parent 7aec432 commit 7dac56e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/kazoo_media/src/kz_media_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ get_prompt(PromptId, Lang, AccountId, 'true') ->
lager:debug("media ~s is not a prompt, leaving alone", [PromptId]),
PromptId;
'false' ->
lager:debug("using account override for ~s in account ~s", [PromptId, AccountId]),
lager:debug("trying to lookup override for prompt ~s in account ~s", [PromptId, AccountId]),
maybe_prompt_path(PromptId
,Lang
,AccountId
Expand All @@ -519,9 +519,10 @@ get_prompt(PromptId, Lang, _AccountId, 'false') ->
-spec maybe_prompt_path(kz_term:ne_binary(), kz_term:api_ne_binary(), kz_term:api_ne_binary(), {'ok', kz_json:object()} | kz_datamgr:data_error()) ->
kz_term:api_ne_binary().
maybe_prompt_path(PromptId, Lang, AccountId, {'error', _}=Err) ->
lager:debug("building default prompt path. Error looking up for prompt ~s: ~p", [PromptId, Err]),
lager:debug("building system prompt path, account ~s does not have custom prompt ~s: ~p ", [AccountId, PromptId, Err]),
kz_binary:join([<<"prompt:/">>, AccountId, PromptId, Lang], <<"/">>);
maybe_prompt_path(PromptId, _Lang, AccountId, {'ok', _}) ->
lager:debug("using account override for prompt ~s in account ~s ", [PromptId, AccountId]),
prompt_path(AccountId, PromptId).

-spec is_not_prompt(kz_term:api_binary()) -> boolean().
Expand Down

0 comments on commit 7dac56e

Please sign in to comment.