Fossil SCM

The access-log should default to ON, in all cases. [forum:/forumpost/a16a4e1556|Forum post a16a4e1556].

drh 2025-12-09 12:41 trunk
Commit fc79c57c591759dc351281a7159b4a97bbbf6b546fbda8c63d721529dec5ecd7
2 files changed +1 -1 +1 -1
+1 -1
--- src/login.c
+++ src/login.c
@@ -199,11 +199,11 @@
199199
const char *zUsername, /* Name of user logging in */
200200
const char *zIpAddr, /* IP address from which they logged in */
201201
int bSuccess /* True if the attempt was a success */
202202
){
203203
db_unprotect(PROTECT_READONLY);
204
- if( db_get_boolean("access-log", 0) ){
204
+ if( db_get_boolean("access-log", 1) ){
205205
create_accesslog_table();
206206
db_multi_exec(
207207
"INSERT INTO accesslog(uname,ipaddr,success,mtime)"
208208
"VALUES(%Q,%Q,%d,julianday('now'));",
209209
zUsername, zIpAddr, bSuccess
210210
--- src/login.c
+++ src/login.c
@@ -199,11 +199,11 @@
199 const char *zUsername, /* Name of user logging in */
200 const char *zIpAddr, /* IP address from which they logged in */
201 int bSuccess /* True if the attempt was a success */
202 ){
203 db_unprotect(PROTECT_READONLY);
204 if( db_get_boolean("access-log", 0) ){
205 create_accesslog_table();
206 db_multi_exec(
207 "INSERT INTO accesslog(uname,ipaddr,success,mtime)"
208 "VALUES(%Q,%Q,%d,julianday('now'));",
209 zUsername, zIpAddr, bSuccess
210
--- src/login.c
+++ src/login.c
@@ -199,11 +199,11 @@
199 const char *zUsername, /* Name of user logging in */
200 const char *zIpAddr, /* IP address from which they logged in */
201 int bSuccess /* True if the attempt was a success */
202 ){
203 db_unprotect(PROTECT_READONLY);
204 if( db_get_boolean("access-log", 1) ){
205 create_accesslog_table();
206 db_multi_exec(
207 "INSERT INTO accesslog(uname,ipaddr,success,mtime)"
208 "VALUES(%Q,%Q,%d,julianday('now'));",
209 zUsername, zIpAddr, bSuccess
210
+1 -1
--- src/user.c
+++ src/user.c
@@ -777,11 +777,11 @@
777777
if( skip ){
778778
style_submenu_element("Newer", "%R/user_log?o=%d&n=%d&y=%d",
779779
skip>=n ? skip-n : 0, n, y);
780780
}
781781
rc = db_prepare_ignore_error(&q, "%s", blob_sql_text(&sql));
782
- fLogEnabled = db_get_boolean("access-log", 0);
782
+ fLogEnabled = db_get_boolean("access-log", 1);
783783
@ <div align="center">User logging is %s(fLogEnabled?"on":"off").
784784
@ (Change this on the <a href="setup_settings">settings</a> page.)</div>
785785
@ <table border="1" cellpadding="5" class="sortable" align="center" \
786786
@ data-column-types='Ttt' data-init-sort='1'>
787787
@ <thead><tr><th width="33%%">Date</th><th width="34%%">User</th>
788788
--- src/user.c
+++ src/user.c
@@ -777,11 +777,11 @@
777 if( skip ){
778 style_submenu_element("Newer", "%R/user_log?o=%d&n=%d&y=%d",
779 skip>=n ? skip-n : 0, n, y);
780 }
781 rc = db_prepare_ignore_error(&q, "%s", blob_sql_text(&sql));
782 fLogEnabled = db_get_boolean("access-log", 0);
783 @ <div align="center">User logging is %s(fLogEnabled?"on":"off").
784 @ (Change this on the <a href="setup_settings">settings</a> page.)</div>
785 @ <table border="1" cellpadding="5" class="sortable" align="center" \
786 @ data-column-types='Ttt' data-init-sort='1'>
787 @ <thead><tr><th width="33%%">Date</th><th width="34%%">User</th>
788
--- src/user.c
+++ src/user.c
@@ -777,11 +777,11 @@
777 if( skip ){
778 style_submenu_element("Newer", "%R/user_log?o=%d&n=%d&y=%d",
779 skip>=n ? skip-n : 0, n, y);
780 }
781 rc = db_prepare_ignore_error(&q, "%s", blob_sql_text(&sql));
782 fLogEnabled = db_get_boolean("access-log", 1);
783 @ <div align="center">User logging is %s(fLogEnabled?"on":"off").
784 @ (Change this on the <a href="setup_settings">settings</a> page.)</div>
785 @ <table border="1" cellpadding="5" class="sortable" align="center" \
786 @ data-column-types='Ttt' data-init-sort='1'>
787 @ <thead><tr><th width="33%%">Date</th><th width="34%%">User</th>
788

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button