Bug 763225 (GLUSTER-1493) - log enhancement to print calling function..
Summary: log enhancement to print calling function..
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-1493
Product: GlusterFS
Classification: Community
Component: logging
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-31 16:09 UTC by Amar Tumballi
Modified: 2015-12-01 16:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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)


Note You need to log in before you can comment on or make changes to this bug.