Hide Forgot
checkout below messages : [2010-08-31 10:52:17.688451] D [dict.c:324:dict_get] dict: @this=(nil) @key=0x2aaaaca5ac34 [2010-08-31 10:52:17.688466] D [dict.c:324:dict_get] dict: @this=(nil) @key=0x2aaaaca5aca6 This doesn't make any sense other than knowing that someone sent dict_get on NULL dictionary. We need a mechanism to print the calling function in these cases. Can use the backtrace() itself.. some macro like 'char *get_calling_function(void)' which returns the name of the calling function.
PATCH: http://patches.gluster.com/patch/4698 in master (dict.c: fix a redundant log in DEBUG level)
PATCH: http://patches.gluster.com/patch/4730 in master (logging: provide a API to print calling functions)