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 28 #include "tr/stream.h"
29 29 #include "tr/logger.h"
30 30
31   -extern TR_Logger logger;
32   -
33 31 ssize_t
34 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 91
94 92 while (0 != (err = ERR_get_error())) {
95 93 TR_loggerLog(
96   - logger,
  94 + TR_logger,
97 95 TR_LOGGER_DEBUG,
98 96 ERR_error_string(err, NULL));
99 97 }
... ...
... ... @@ -28,9 +28,6 @@
28 28 #include "tr/stream.h"
29 29 #include "tr/logger.h"
30 30
31   -extern TR_Logger logger;
32   -
33   -
34 31 ssize_t
35 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 95
99 96 while (0 != (err = ERR_get_error())) {
100 97 TR_loggerLog(
101   - logger,
  98 + TR_logger,
102 99 TR_LOGGER_DEBUG,
103 100 ERR_error_string(err, NULL));
104 101 }
... ...
Please register or login to post a comment