summaryrefslogtreecommitdiff
path: root/src/loggers.h
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2009-11-15 13:04:05 -0800
committerDaniel Burrows <dburrows@debian.org>2009-11-15 13:04:05 -0800
commit026ce9151a6eb4e1732cda36d59ba810cf8c3da2 (patch)
tree635a83a23e24b567be88c0c7be66e49e98cd568e /src/loggers.h
parent246233fdee544be55ff21992403ffc3f2247f45f (diff)
downloadaptitude-026ce9151a6eb4e1732cda36d59ba810cf8c3da2.tar.gz
Introduce a log category for messages related to temporary files, and use it to eliminate an error logged to _error when a temporary directory can't be deleted.
This works around the problem where sometimes the background download queue would become unable to download anything else. That problem seems to have been related to a message being inserted into the global error queue. This doesn't actually fix that problem, which I suspect is a bug in apt's Acquire, but it prevents it from cropping up in this place. This also reminds me: at some point the temporary file stuff should (a) allocate a single directory in $TMP and use it for all temporary files instead of making a zillion, and (b) get an explicit shutdown at the end of the program that recursively deletes that directory (instead of relying on destructors to clear it out).
Diffstat (limited to 'src/loggers.h')
-rw-r--r--src/loggers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/loggers.h b/src/loggers.h
index 2801c464..ea584731 100644
--- a/src/loggers.h
+++ b/src/loggers.h
@@ -243,6 +243,9 @@ namespace aptitude
*/
static log4cxx::LoggerPtr getAptitudeResolverTiers();
+ /** \brief The logger for messages related to temporary files. */
+ static log4cxx::LoggerPtr getAptitudeTemp();
+
/** \brief The logger for the "why" command.
*
* Name: aptitude.why