ldb_tdb: raise level of full index scan message so that it starts to be really visible
authorMatthieu Patou <mat@matws.net>
Mon, 7 Jan 2013 06:17:26 +0000 (22:17 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 8 Feb 2013 04:06:31 +0000 (15:06 +1100)
We don't want to have to set log level to 4 or 5 AND set the environment
variable to be able to see those log messages

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_tdb/ldb_search.c

index 26296c7f7dd8912a1cab5dd879438e3a6a9fd5f5..1e7e7ea82f05d49435675515c2d5dbdd594faf8f 100644 (file)
@@ -606,7 +606,7 @@ int ltdb_search(struct ltdb_context *ctx)
                                /* useful for debugging when slow performance
                                 * is caused by unindexed searches */
                                char *expression = ldb_filter_from_tree(ctx, ctx->tree);
-                               ldb_debug(ldb, LDB_DEBUG_WARNING, "ldb FULL SEARCH: %s SCOPE: %s DN: %s\n",
+                               ldb_debug(ldb, LDB_DEBUG_ERROR, "ldb FULL SEARCH: %s SCOPE: %s DN: %s",
                                                        expression,
                                                        req->op.search.scope==LDB_SCOPE_BASE?"base":
                                                        req->op.search.scope==LDB_SCOPE_ONELEVEL?"one":