Andreas Jellinghaus wrote: > Am Montag 19 April 2010 15:18:08 schrieb Viktor TARASOV: > >> Instead of change proposed in this mail, I would propose the following: >> if (verbose > 1) { >> ctx->debug = verbose; >> ctx->debug_file = stderr; >> } >> > > what about: > if (verbose > 1) > ctx->debug = verbose; > else > verbose = ctx->debug; > if (verbose > 1) > ctx->debug_file = stderr; >
In that case the vvverbose logs will inevitably go onto the stderr. What I'm looking for is to have the possibility to direct the extented logs into the opensc-debug file defined in opensc.conf . > i.e. if there is a debug setting in opensc.conf, copy it. > > also, why code this in every tool? > > we could as well extenend sc_context_create with an extra > parameter and let this opensc function handle it. that > way you can create debug messages in this early stage too, > which is now a bit limited. > > Regards, Andreas > Kind wishes, Viktor. > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel > > -- Viktor Tarasov <viktor.tara...@opentrust.com> _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel