Quellcode durchsuchen

ldap debug with trace loglevel

Bertrand Gouny vor 8 Jahren
Ursprung
Commit
13ac8533ff
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      image/service/slapd/startup.sh

+ 1 - 2
image/service/slapd/startup.sh

@@ -169,8 +169,7 @@ EOF
     # start OpenLDAP
     log-helper info "Start OpenLDAP..."
 
-    if log-helper level eq debug; then
-      # debug
+    if log-helper level ge debug; then
       slapd -h "ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL 2>&1 &
     else
       slapd -h "ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap