summaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 02ad7142e2..e0bfcf883c 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -889,29 +889,6 @@ add_temp_log(int min_severity)
UNLOCK_LOGS();
}
-#define CALLBACK_FILENAME "<callback>"
-
-/**
- * Removes the latest log handler added, if that log handler is a callback
- * handler.
- */
-void
-remove_log_callback(void)
-{
- if(logfiles && !strcmp(logfiles->filename, CALLBACK_FILENAME)) {
- logfile_t *lf = logfiles;
-
- LOCK_LOGS();
- logfiles = lf->next;
- log_global_min_severity_ = get_min_log_level();
- UNLOCK_LOGS();
-
- tor_free(lf->filename);
- tor_free(lf->severities);
- tor_free(lf);
- }
-}
-
/**
* Add a log handler to send messages in <b>severity</b>
* to the function <b>cb</b>.
@@ -923,7 +900,7 @@ add_callback_log(const log_severity_list_t *severity, log_callback cb)
lf = tor_malloc_zero(sizeof(logfile_t));
lf->fd = -1;
lf->severities = tor_memdup(severity, sizeof(log_severity_list_t));
- lf->filename = tor_strdup(CALLBACK_FILENAME);
+ lf->filename = tor_strdup("<callback>");
lf->callback = cb;
lf->next = logfiles;