Bug 763225 (GLUSTER-1493)

Summary: log enhancement to print calling function..
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: loggingAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, vijay, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amar Tumballi 2010-08-31 16:09:35 UTC
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.

Comment 1 Vijay Bellur 2010-09-09 05:04:25 UTC
PATCH: http://patches.gluster.com/patch/4698 in master (dict.c: fix a redundant log in DEBUG level)

Comment 2 Vijay Bellur 2010-09-13 10:44:53 UTC
PATCH: http://patches.gluster.com/patch/4730 in master (logging: provide a API to print calling functions)