]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Enable debug logging
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 8 Jun 2019 15:22:22 +0000 (16:22 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 8 Jun 2019 15:22:22 +0000 (16:22 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/testsuite.c

index 4a9992e35845e4c8f2dd8545f00ad92fa4cb0ff7..627f8ef8bc691681a818b7a7336245affa54ed18 100644 (file)
@@ -43,6 +43,9 @@ static int test_run(test_t* t) {
        // Log to stderr
        pakfire_log_set_function(t->pakfire, pakfire_log_stderr);
 
+       // Enable debug logging
+       pakfire_log_set_priority(t->pakfire, LOG_DEBUG);
+
        int r = t->func(t);
        if (r)
                LOG("Test failed with error code: %d\n", r);