directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Exception Logging
Date Fri, 04 Jun 2010 13:58:51 GMT
On 6/4/10 3:44 PM, Alan D. Cabrera wrote:
> On Jun 4, 2010, at 6:13 AM, Emmanuel Lecharny wrote:
>
>    
>> On 6/4/10 2:55 PM, Alan D. Cabrera wrote:
>>      
>>> Finally, what the heck is ERR_04007? :)  I thought there already was a discussion
and community consensus about how there is little to negative value in using numbers as error
messages.  Maybe I missed the conversation where this opinion was reversed.  If so, ignore
this bit.  :)
>>>
>>>        
>> No, nobody missed this valid concern. We are just modifying them one by one when
fixing issues using those error code :
>>
>>     ERR_02014_UNSUPPORTED_OPERATION( "ERR_02014_UNSUPPORTED_OPERATION" ),
>> ...
>>     ERR_04219_ARGUMENT1_NULL( "ERR_04219_ARGUMENT1_NULL" ),
>>     ERR_04220_ARGUMENT2_NULL( "ERR_04220_ARGUMENT2_NULL" ),
>> ...
>>     ERR_04442_NULL_AT_NOT_ALLOWED( "ERR_04442_NULL_AT_NOT_ALLOWED" ),
>> ...
>>     ERR_04457_NULL_ATTRIBUTE_ID( "ERR_04457_NULL_ATTRIBUTE_ID" ),
>> ...
>>     ERR_04460_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED( "ERR_04460_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED"
),
>> ...
>>     ERR_04477_NO_VALID_AT_FOR_THIS_ID( "ERR_04477_NO_VALID_AT_FOR_THIS_ID" ),
>>     ERR_04478_NO_VALUE_NOT_ALLOWED( "ERR_04478_NO_VALUE_NOT_ALLOWED" ),
>>     ERR_04479_INVALID_SYNTAX_VALUE( "ERR_04479_INVALID_SYNTAX_VALUE" ),
>> ...
>>     ERR_09001_DIRECTORY_CREATION_FAILED( "ERR_09001_DIRECTORY_CREATION_FAILED" ),
>> ...
>>     ERR_254_ADD_EXISTING_VALUE("ERR_254_ADD_EXISTING_VALUE"),
>> ...
>>   ERR_272_MODIFY_LEAVES_NO_STRUCTURAL_OBJECT_CLASS("ERR_272_MODIFY_LEAVES_NO_STRUCTURAL_OBJECT_CLASS"),
>> ...
>>     ERR_539_BAD_BLOCK_ID("ERR_539_BAD_BLOCK_ID"),
>>
>>
>>
>> We have something like one thousands of them, it will take time, but this approach
works. Be patient :)
>>      
> No worries.  :) Why do they all have numbers in them?
>    

Grep is your friend when you have accurate elements to work on :) 
Numbers are less versatile than textual descriptions.

/me remember a 5 days debugging session on a production serveur 
generating 5Gb of logs a day, using grep to grab the errors I was 
looking for...


-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.nextury.com



Mime
View raw message