Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c4a023bf9ceded4390a41007eae61ca4b784b15d 1 parent 2ecd867
@steveyen steveyen authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 memcached.c
View
4 memcached.c
@@ -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) {
/*
Please sign in to comment.
Something went wrong with that request. Please try again.