mirror of
https://github.com/Zygo/bees.git
synced 2025-07-07 02:42:27 +02:00
bees: trace and log improvements during roots and context startup
Currently if crawl throws an exception, we don't have basic information about what was being crawled or even if the crawler was running at all. These traces also help identify the causes of early exception failures. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
@ -734,6 +734,7 @@ bees_main(int argc, char *argv[])
|
||||
|
||||
// Create a context so we can apply configuration to it
|
||||
shared_ptr<BeesContext> bc = make_shared<BeesContext>();
|
||||
BEESLOGDEBUG("context constructed");
|
||||
|
||||
string cwd(readlink_or_die("/proc/self/cwd"));
|
||||
|
||||
@ -789,6 +790,8 @@ bees_main(int argc, char *argv[])
|
||||
break;
|
||||
}
|
||||
|
||||
BEESLOGDEBUG("Parsing option '" << static_cast<char>(c) << "'");
|
||||
|
||||
switch (c) {
|
||||
|
||||
case 'C':
|
||||
|
Reference in New Issue
Block a user