X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Flog-conf.c;h=7c7f97afe8ce2ed0c15fd393b7cecae75ee43eb4;hb=315d65b74168b23e820b9dde6166ec19bd048228;hp=26d7d5c46d106eb8bb136b0275e9a8c959c9e44e;hpb=461d9795c2f743e4319b83f4dfff90d95d4a2dee;p=libucw.git diff --git a/ucw/log-conf.c b/ucw/log-conf.c index 26d7d5c4..7c7f97af 100644 --- a/ucw/log-conf.c +++ b/ucw/log-conf.c @@ -336,11 +336,7 @@ log_new_configured(const char *name) void log_configured(const char *name) { - struct log_stream *ls = log_new_configured(name); - struct log_stream *def = log_stream_by_flags(0); - log_rm_substream(def, NULL); - log_add_substream(def, ls); - log_close_stream(ls); + log_set_default_stream(log_new_configured(name)); } #ifdef TEST