Browse Source

MT#56493 add some more logging

Change-Id: Ib5d53f14b94aafda5d6ab6efa1c58d3ba6a473c4
pull/1611/head
Richard Fuchs 3 years ago
parent
commit
f1e856b2d3
2 changed files with 7 additions and 1 deletions
  1. +4
    -1
      recording-daemon/metafile.c
  2. +3
    -0
      recording-daemon/output.c

+ 4
- 1
recording-daemon/metafile.c View File

@ -221,7 +221,8 @@ static metafile_t *metafile_get(char *name) {
if (mf) if (mf)
goto out; goto out;
dbg("allocating metafile info for %s%s%s", FMT_M(name));
ilog(LOG_INFO, "New call for recording: '%s%s%s'", FMT_M(name));
mf = g_slice_alloc0(sizeof(*mf)); mf = g_slice_alloc0(sizeof(*mf));
mf->gsc = g_string_chunk_new(0); mf->gsc = g_string_chunk_new(0);
mf->name = g_string_chunk_insert(mf->gsc, name); mf->name = g_string_chunk_insert(mf->gsc, name);
@ -368,6 +369,8 @@ void metafile_delete(char *name) {
g_hash_table_remove(metafiles, name); g_hash_table_remove(metafiles, name);
pthread_mutex_unlock(&metafiles_lock); pthread_mutex_unlock(&metafiles_lock);
ilog(LOG_INFO, "Recording for call '%s%s%s' finished", FMT_M(name));
meta_destroy(mf); meta_destroy(mf);
// add to garbage // add to garbage


+ 3
- 0
recording-daemon/output.c View File

@ -282,6 +282,7 @@ got_fn:
db_config_stream(output); db_config_stream(output);
done: done:
ilog(LOG_INFO, "Opened output media file '%s' for writing", full_fn);
if (actual_format) if (actual_format)
*actual_format = output->actual_format; *actual_format = output->actual_format;
return 0; return 0;
@ -301,6 +302,8 @@ static bool output_shutdown(output_t *output) {
if (!output->fmtctx) if (!output->fmtctx)
return false; return false;
ilog(LOG_INFO, "Closing output media file '%s'", output->filename);
bool ret = false; bool ret = false;
if (output->fmtctx->pb) { if (output->fmtctx->pb) {
av_write_trailer(output->fmtctx); av_write_trailer(output->fmtctx);


Loading…
Cancel
Save