]> git.tdb.fi Git - builder.git/commitdiff
Add logging for some problem situations
authorMikko Rasa <tdb@tdb.fi>
Sun, 31 Oct 2021 15:50:32 +0000 (17:50 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 31 Oct 2021 15:50:32 +0000 (17:50 +0200)
source/binarypackage.cpp
source/target.cpp
source/tool.cpp

index 5415f257ef180cf17953e525123a9119e5168a03..aa1aed3c2fce4a0ecbfc7214299621724df27fdf 100644 (file)
@@ -76,6 +76,7 @@ void BinaryPackage::do_prepare()
        if(base_path.empty())
        {
                // TODO report which files were not found
+               builder.get_logger().log("problems", format("Cannot locate files for %s", name));
                problems.push_back("Cannot locate files");
                return;
        }
index cb44b1322d19cad25e8c392077d3e6ea79925485..9006a570cb360f42c00589bd08abc7e54b25ca05 100644 (file)
@@ -121,6 +121,7 @@ void Target::prepare()
                return;
        if(state==PREPARING)
        {
+               builder.get_logger().log("problems", format("Dependency cycle detected at %s", name));
                problems.push_back("Dependency cycle detected");
                state = BROKEN;
                return;
index f3a29905b1651f12cc2c4dc92ef95f55e38b5a0d..496132f7a5266523e92777e0558aeb79b62b57cb 100644 (file)
@@ -64,7 +64,10 @@ void Tool::prepare()
        {
                executable = builder.get_vfs().find_binary(command);
                if(!executable)
+               {
+                       builder.get_logger().log("problems", format("Can't find executable %s for %s", command, tag));
                        problems.push_back(format("Can't find executable %s", command));
+               }
        }
 }