Browse Source

utilize the new default logger where one is needed. I am still checking if it wouldn't be better to inject a logger in each and every instance if it should do logging.

1.0.0
Georg Hopp 12 years ago
parent
commit
e67ed545ac
  1. 4
      src/read.c
  2. 5
      src/write.c

4
src/read.c

@ -28,8 +28,6 @@
#include "tr/stream.h"
#include "tr/logger.h"
extern TR_Logger logger;
ssize_t
TR_streamRead(TR_Stream this, void * buf, size_t count)
{
@ -93,7 +91,7 @@ TR_streamRead(TR_Stream this, void * buf, size_t count)
while (0 != (err = ERR_get_error())) {
TR_loggerLog(
logger,
TR_logger,
TR_LOGGER_DEBUG,
ERR_error_string(err, NULL));
}

5
src/write.c

@ -28,9 +28,6 @@
#include "tr/stream.h"
#include "tr/logger.h"
extern TR_Logger logger;
ssize_t
TR_streamWrite(TR_Stream this, void * buf, size_t count)
{
@ -98,7 +95,7 @@ TR_streamWrite(TR_Stream this, void * buf, size_t count)
while (0 != (err = ERR_get_error())) {
TR_loggerLog(
logger,
TR_logger,
TR_LOGGER_DEBUG,
ERR_error_string(err, NULL));
}

Loading…
Cancel
Save