asn1ct verbose
Ruslan Babayev
ruslan@REDACTED
Wed Mar 31 22:28:49 CEST 2010
I didn't have a chance to have a look at how asn1ct handles warnings. For warnings verbose flag makes sense. But I think static output like below should be removed.
Erlang ASN.1 version "1.6.13" compiling "/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.asn1"
Compiler Options: [ber,report_errors,
{cwd,"/Users/ruslan/tmp/cdrdump/asn1"},
{outdir,"/Users/ruslan/tmp/cdrdump/asn1"},
{i,"."},
{i,"/Users/ruslan/tmp/cdrdump/asn1"}]
--{generated,"/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.asn1db"}--
--{generated,"/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.hrl"}--
--{generated,"/Users/ruslan/tmp/cdrdump/asn1/Attribute-ASN1Module.erl"}--
ok
On Mar 29, 2010, at 7:02 PM, Tuncer Ayaz wrote:
> On Tue, Mar 30, 2010 at 3:37 AM, Ruslan Babayev <ruslan@REDACTED> wrote:
>> Merhaba Ayaz,
>>
>> I think the verbosity of asn1ct was out of place to begin with. After all,
>> erlc and snmp compiler are not "verbose" and don't have a flag to turn it
>> on/off. Just like gcc or any other compiler doesn't spew out it's version
>> and the fact that it's compiling or generating something.
>
> erlc has a -v option and it's actually used but was not
> in asn1ct. Default is verbose and that might explain why
> you never saw verbose output.
> See yecc for verbose logging:
> either
> $ erlc -v foobar.yrl
> or
>> yecc:file("foobar.yrl", [{verbose,true}]).
>
> So it's not ignored everywhere.
>
> Without -v yecc does not print warnings.
>
>> I would rather see all those io:format's removed. There should be output
>> only when something goes wrong.
>
> Please reply to my mail on erlang-patches that you think removing
> at least the static version string is a good idea.
> Feel free to call for removal of all of the logging if you want.
> I have no objection against that.
> Either way we will solve it to not print unwanted messages :).
>
>> Regards,
>> Ruslan
>>
>> On Sun, Mar 28, 2010 at 2:13 PM, Tuncer Ayaz <tuncer.ayaz@REDACTED> wrote:
>>>
>>> See
>>>
>>> http://www.erlang.org/cgi-bin/ezmlm-cgi?3:mss:957:201003:gkeghjmcebaelnakiplc
>>
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3919 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20100331/a0faa68e/attachment.bin>
More information about the erlang-patches
mailing list