Commit e67ed545ac6946aaffefc8dc34215e7ce05a439a

Authored by Georg Hopp
1 parent 2abe37e2

utilize the new default logger where one is needed. I am still checking if it wo…

…uldn't be better to inject a logger in each and every instance if it should do logging.
Showing 2 changed files with 2 additions and 7 deletions
@@ -28,8 +28,6 @@ @@ -28,8 +28,6 @@
28 #include "tr/stream.h" 28 #include "tr/stream.h"
29 #include "tr/logger.h" 29 #include "tr/logger.h"
30 30
31 -extern TR_Logger logger;  
32 -  
33 ssize_t 31 ssize_t
34 TR_streamRead(TR_Stream this, void * buf, size_t count) 32 TR_streamRead(TR_Stream this, void * buf, size_t count)
35 { 33 {
@@ -93,7 +91,7 @@ TR_streamRead(TR_Stream this, void * buf, size_t count) @@ -93,7 +91,7 @@ TR_streamRead(TR_Stream this, void * buf, size_t count)
93 91
94 while (0 != (err = ERR_get_error())) { 92 while (0 != (err = ERR_get_error())) {
95 TR_loggerLog( 93 TR_loggerLog(
96 - logger, 94 + TR_logger,
97 TR_LOGGER_DEBUG, 95 TR_LOGGER_DEBUG,
98 ERR_error_string(err, NULL)); 96 ERR_error_string(err, NULL));
99 } 97 }
@@ -28,9 +28,6 @@ @@ -28,9 +28,6 @@
28 #include "tr/stream.h" 28 #include "tr/stream.h"
29 #include "tr/logger.h" 29 #include "tr/logger.h"
30 30
31 -extern TR_Logger logger;  
32 -  
33 -  
34 ssize_t 31 ssize_t
35 TR_streamWrite(TR_Stream this, void * buf, size_t count) 32 TR_streamWrite(TR_Stream this, void * buf, size_t count)
36 { 33 {
@@ -98,7 +95,7 @@ TR_streamWrite(TR_Stream this, void * buf, size_t count) @@ -98,7 +95,7 @@ TR_streamWrite(TR_Stream this, void * buf, size_t count)
98 95
99 while (0 != (err = ERR_get_error())) { 96 while (0 != (err = ERR_get_error())) {
100 TR_loggerLog( 97 TR_loggerLog(
101 - logger, 98 + TR_logger,
102 TR_LOGGER_DEBUG, 99 TR_LOGGER_DEBUG,
103 ERR_error_string(err, NULL)); 100 ERR_error_string(err, NULL));
104 } 101 }
Please register or login to post a comment