Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
liblattutil
Commits
4557c7a8
Commit
4557c7a8
authored
Jul 22, 2021
by
Shawn Webb
Browse files
Use the stdio logger and log queries
Signed-off-by:
Shawn Webb
<
shawn.webb@hardenedbsd.org
>
parent
40480ec2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lattutil/lattutil.c
View file @
4557c7a8
...
...
@@ -47,10 +47,10 @@ main(int argc, char *argv[])
logp
=
lattutil_log_init
(
NULL
,
-
1
);
lattutil_log_syslog_init
(
logp
,
LOG_PID
|
LOG_NDELAY
,
LOG_USER
);
lattutil_log_stdio_init
(
logp
);
sqlctx
=
lattutil_sqlite_ctx_new
(
"/tmp/db.sqlite3"
,
logp
,
0
);
sqlctx
=
lattutil_sqlite_ctx_new
(
"/tmp/db.sqlite3"
,
logp
,
LATTUTIL_SQL_FLAG_LOG_QUERY
);
if
(
sqlctx
==
NULL
)
{
logp
->
ll_log_err
(
logp
,
-
1
,
"Unable to create sqlite3 object"
);
return
(
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment