ntdb: use NTDB_LOG_WARNING level for failed open() without O_CREAT.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Jun 2012 13:00:28 +0000 (22:30 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jun 2012 03:38:06 +0000 (05:38 +0200)
commit3bccb610c166df1ce2ea5c8a80daa451bd6edf67
tree15d51fa61d52c29af1c65ecef0a7e5a51dcd56dc
parentc7273629a24feea03d60f17e706806c261130c57
ntdb: use NTDB_LOG_WARNING level for failed open() without O_CREAT.

This is a fairly common pattern in Samba, and if we log an error on
every open it spams the logs.  On the other hand, other errors are
potentially more serious, so we still use NTDB_LOG_ERROR on them.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ntdb/ntdb.h
lib/ntdb/open.c