Permalink
Browse files

initial printf only when -v

Change-Id: Id67199c23a6acfe85d56c41044fe432ade99ba94
Reviewed-on: http://review.northscale.com/2674
Tested-by: Matt Ingenthron <matt@northscale.com>
Reviewed-by: Matt Ingenthron <matt@northscale.com>
  • Loading branch information...
1 parent 2ecd867 commit c4a023bf9ceded4390a41007eae61ca4b784b15d @steveyen steveyen committed Sep 24, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 memcached.c
View
@@ -4575,7 +4575,9 @@ int main (int argc, char **argv) {
* logger initialized, from now on we should use moxi_log_write
* instead of fprintfs/perror
*/
- moxi_log_write("moxi log, mode=%d, file=%s\n", ml->log_mode, ml->log_file);
+ if (settings.verbose > 0) {
+ moxi_log_write("moxi log, mode=%d, file=%s\n", ml->log_mode, ml->log_file);
+ }
if (ml->log_mode == ERRORLOG_FILE) {
/*

0 comments on commit c4a023b

Please sign in to comment.