]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbindd_cache: adjust some debug levels to more appropriate severities
authorBjörn Jacke <bj@sernet.de>
Wed, 28 Jun 2023 09:52:32 +0000 (11:52 +0200)
committerBjoern Jacke <bjacke@samba.org>
Sun, 2 Jul 2023 16:50:36 +0000 (16:50 +0000)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/winbindd/winbindd_cache.c

index 3692965270877eb831e9f0c0ecd686beb55240c0..f4d00cf3b5725a46533c99cafbd1d372a19840c6 100644 (file)
@@ -1340,8 +1340,8 @@ NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
 
                /* Bad (old) cred cache. Delete and pretend we
                   don't have it. */
-               DEBUG(0,("wcache_get_creds: bad entry for [CRED/%s] - deleting\n",
-                               sidstr.buf));
+               DBG_WARNING("wcache_get_creds: bad entry for [CRED/%s] - deleting\n",
+                               sidstr.buf);
                wcache_delete("CRED/%s", sidstr.buf);
                centry_free(centry);
                return NT_STATUS_OBJECT_NAME_NOT_FOUND;
@@ -3237,9 +3237,9 @@ bool initialize_winbindd_cache(void)
        if (cache_bad) {
                char *db_path;
 
-               DEBUG(0,("initialize_winbindd_cache: clearing cache "
+               DBG_NOTICE("initialize_winbindd_cache: clearing cache "
                        "and re-creating with version number %d\n",
-                       WINBINDD_CACHE_VERSION ));
+                       WINBINDD_CACHE_VERSION);
 
                tdb_close(wcache->tdb);
                wcache->tdb = NULL;
@@ -4212,7 +4212,7 @@ static bool wbcache_upgrade_v1_to_v2(TDB_CONTEXT *tdb)
 {
        int rc;
 
-       DEBUG(1, ("Upgrade to version 2 of the winbindd_cache.tdb\n"));
+       DBG_NOTICE("Upgrade to version 2 of the winbindd_cache.tdb\n");
 
        rc = tdb_traverse(tdb, wbcache_update_centry_fn, NULL);
        if (rc < 0) {