diff options
Diffstat (limited to 'libglusterfs/src')
| -rw-r--r-- | libglusterfs/src/logging.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c index 2d3bb4c8f25..1998fdc3ea4 100644 --- a/libglusterfs/src/logging.c +++ b/libglusterfs/src/logging.c @@ -205,6 +205,9 @@ _gf_log (const char *domain, const char *file, const char *function, int line,          xlator_t    *this = NULL;          gf_loglevel_t xlator_loglevel = 0; +	if (!logfile) +		return -1; +          this = THIS;          xlator_loglevel = this->loglevel; @@ -233,10 +236,6 @@ _gf_log (const char *domain, const char *file, const char *function, int line,  		return -1;  	} -	if (!logfile) { -		fprintf (stderr, "no logfile set\n"); -		return (-1); -	}  	if (logrotate) {  		logrotate = 0;  | 
