repo: tlswrap
action: commit
revision: 
path_from: 
revision_from: b9dd4772d2ac7f6bda55bb5c2679afd0cf7e079b:
path_to: 
revision_to: 
git.thebackupbox.net
tlswrap
git clone git://git.thebackupbox.net/tlswrap
commit b9dd4772d2ac7f6bda55bb5c2679afd0cf7e079b
Author: epoch 
Date:   Tue Mar 8 14:27:32 2022 +0000

    I had left the debug messages as LOG_ERR from when I was testing.. fixt

diff --git a/tlswrap.c b/tlswrap.c
index 0310e300e466e6612caa74c3e41fd8176f082f26..
index ..009ad776c464d559d991413afdf4baaaa314d99c 100644
--- a/tlswrap.c
+++ b/tlswrap.c
@@ -279,7 +279,7 @@ int main(int argc,char *argv[]) {
     }
     if(FD_ISSET(0,&readfs)) {
       if((r=SSL_read(ssl,buffer,sizeof(buffer))) <= 0) {
-        syslog(LOG_DAEMON|LOG_ERR,"SSL done. %d msg: %s",r,ERR_error_string(ERR_get_error(),NULL));
+        syslog(LOG_DAEMON|LOG_DEBUG,"SSL done. %d msg: %s",r,ERR_error_string(ERR_get_error(),NULL));
 	if(r > 0) {//we can get done and data at the same time I guess?
           if(write(a[1],buffer,r) < 0) {
             syslog(LOG_DAEMON|LOG_ERR,"write failed. -_-");
@@ -287,7 +287,7 @@ int main(int argc,char *argv[]) {
 	}
         FD_CLR(0,&master);
       } else {
-        syslog(LOG_DAEMON|LOG_ERR,"SSL read? %d msg: %s",r,ERR_error_string(ERR_get_error(),NULL));
+        syslog(LOG_DAEMON|LOG_DEBUG,"SSL read? %d msg: %s",r,ERR_error_string(ERR_get_error(),NULL));
         syslog(LOG_DAEMON|LOG_DEBUG,"read %d bytes from ssl!",r);
         if(write(a[1],buffer,r) < 0) {
           syslog(LOG_DAEMON|LOG_ERR,"a write failed. -_-");

-----END OF PAGE-----