From 903f5af1ef5628b9fbe34a595d92744f9a771c48 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 4 Mar 2019 13:35:36 -0500 Subject: [PATCH] invalid parameters should be a debug not a warning --- src/zms.cpp | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/src/zms.cpp b/src/zms.cpp index 634e07030..a45cdf904 100644 --- a/src/zms.cpp +++ b/src/zms.cpp @@ -152,30 +152,16 @@ int main( int argc, const char *argv[] ) { connkey = atoi(value); } else if ( !strcmp( name, "buffer" ) ) { playback_buffer = atoi(value); - } else if ( config.opt_use_auth ) { - if ( strcmp( config.auth_relay, "none" ) == 0 ) { - if ( !strcmp( name, "user" ) ) { - username = value; - } - } else { - //if ( strcmp( config.auth_relay, "hashed" ) == 0 ) - { - if ( !strcmp( name, "auth" ) ) { - strncpy( auth, value, sizeof(auth)-1 ); - } - } - //else if ( strcmp( config.auth_relay, "plain" ) == 0 ) - { - if ( !strcmp( name, "user" ) ) { - username = UriDecode( value ); - } - if ( !strcmp( name, "pass" ) ) { - password = UriDecode( value ); - Debug( 1, "Have %s for password", password.c_str() ); - } - } - } - } + } else if ( !strcmp( name, "auth" ) ) { + strncpy( auth, value, sizeof(auth)-1 ); + } else if ( !strcmp( name, "user" ) ) { + username = UriDecode( value ); + } else if ( !strcmp( name, "pass" ) ) { + password = UriDecode(value); + Debug(1, "Have %s for password", password.c_str()); + } else { + Debug(1, "Unknown parameter passed to zms %s=%s", name, value); + } // end if possible parameter names } // end foreach parm } // end if query @@ -323,5 +309,5 @@ int main( int argc, const char *argv[] ) { logTerm(); zmDbClose(); - return( 0 ); + return(0); }