Bug 1241157 - Remove uses of gf_log/gf_msg before logging init
Summary: Remove uses of gf_log/gf_msg before logging init
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Raghavendra Talur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-08 15:24 UTC by Raghavendra Talur
Modified: 2018-08-29 03:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-29 03:54:18 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Raghavendra Talur 2015-07-08 15:24:25 UTC
Description of problem:

When logging is not inited using gf_log or gf_msg gives an illusion that message is being logged but it isn't.

Print all the critical info to stdout/stderr and don't use gf_log or gf_msg before logging_init.


How reproducible:
Always


Steps to Reproduce:
1. Delete contents of /etc/glusterfs
2. start glusterd on command line.


Actual results:
just a usage format is printed on screen without telling what went wrong.

Expected results:
We should also print on screen what we are trying to log here.
gf_msg ("glusterfs", GF_LOG_CRITICAL, errno, glusterfsd_msg_16);


This is one example, there are probably few others. Let this bug cover all such
occurences.

Comment 1 Amar Tumballi 2018-08-29 03:54:18 UTC
Lot of time since no activity on this bug. We have either fixed it already or it is mostly not critical anymore!

Please re-open the bug if the issue is burning for you, or you want to take the bug to closure with fixes.


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