tests: Replace deprecated API log_set_print_filename

Change-Id: I761d2bf99aa5a009ff489584d804634e58588125
This commit is contained in:
Pau Espin 2021-02-19 13:33:52 +01:00
parent a34036c296
commit ace0b946ff
1 changed files with 2 additions and 1 deletions

View File

@ -689,9 +689,10 @@ int main(int argc, char **argv)
ctx = talloc_named_const(NULL, 1, "mgcp_client_test");
msgb_talloc_ctx_init(ctx, 0);
osmo_init_logging2(ctx, &log_info);
log_set_print_filename(osmo_stderr_target, 0);
log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE);
log_set_print_timestamp(osmo_stderr_target, 0);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_category_hex(osmo_stderr_target, 0);
log_set_print_category(osmo_stderr_target, 1);
log_set_category_filter(osmo_stderr_target, DLMGCP, 1, LOGL_DEBUG);