On 12/8/06, Roman Filonenko <[EMAIL PROTECTED]> wrote:
> For now, tport uses TPORT_LOG and TPORT_DUMP environment variables to
> configure the log flags and we found that more dynamic configuration of
> the above flags (e.g. on nua_create()) is much more comfortable.

Thanks. I think that having environment variables to override the
application configuration behavious is more flexible (so TPORT_LOG
environment variable would override TPTAG_LOG() - you could debug a
process simply by setting the environment variable). That is the way
TPORT_DEBUG and su_log_soft_set_level() works. Perhaps a second tag,
TPORT_LOG_OVERRIDE()?

Any opinions? Application settings override environment, or vice versa?

Another thing: an nta application could use several primary transports
with different settings, stored in tport_params_t. Now if we set the
logging with tags, it would probably be much nicer to store the log
bit in in tport_params_t instead of mr_log. The mr_dump_file is a bit
trickier.

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to