From 2453b7f1803df98f86d7b800fe9471fa3ac4c71e Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 10 Jul 2017 01:24:52 +0100 Subject: [PATCH] Add a little information to the log to see when the cache is being built. --- volatility/framework/automagic/linux_symbol_cache.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/volatility/framework/automagic/linux_symbol_cache.py b/volatility/framework/automagic/linux_symbol_cache.py index ab1447277..73cbbfc80 100644 --- a/volatility/framework/automagic/linux_symbol_cache.py +++ b/volatility/framework/automagic/linux_symbol_cache.py @@ -1,3 +1,4 @@ +import logging import os import pathlib import pickle @@ -5,6 +6,8 @@ import pickle from volatility.framework import interfaces, constants from volatility.framework.symbols import intermed +vollog = logging.getLogger(__name__) + cached_linuxbanner_filepath = os.path.join(constants.CACHE_PATH, "linux_banners.cache") @@ -36,6 +39,8 @@ class LinuxSymbolCache(interfaces.automagic.AutomagicInterface): cacheables.remove(json_file) total = len(cacheables) + if total > 0: + vollog.info("Building linux caches...") for current in range(total): progress_callback(current / total) isf_url = cacheables[current]