Fossil SCM

Put a link to the error log on the /stat page. The link is only visible to administrators.

drh 2018-07-12 14:21 trunk
Commit 488709be44f806e3706bd9d6e1b70fb2e8ad3868042d894ff94b419c077bed55
1 file changed +8
+8
--- src/stat.c
+++ src/stat.c
@@ -198,10 +198,18 @@
198198
@ %d(db_int(0, "PRAGMA repository.page_size")) bytes/page,
199199
@ %,d(db_int(0, "PRAGMA repository.freelist_count")) free pages,
200200
@ %s(db_text(0, "PRAGMA repository.encoding")),
201201
@ %s(db_text(0, "PRAGMA repository.journal_mode")) mode
202202
@ </td></tr>
203
+ if( g.perm.Admin && g.zErrlog && g.zErrlog[0] ){
204
+ i64 szFile = file_size(g.zErrlog, ExtFILE);
205
+ if( szFile>=0 ){
206
+ @ <tr><th>Error Log:</th>
207
+ @ <td><a href='%R/errorlog'>%h(g.zErrlog)</a> (%,lld(szFile) bytes)
208
+ }
209
+ @ </td></tr>
210
+ }
203211
if( g.perm.Admin && email_enabled() ){
204212
const char *zDest = db_get("email-send-method",0);
205213
int nSub, nASub, nPend, nDPend;
206214
const char *zDir, *zDb, *zCmd;
207215
@ <tr><th>Outgoing&nbsp;Email:</th><td>
208216
--- src/stat.c
+++ src/stat.c
@@ -198,10 +198,18 @@
198 @ %d(db_int(0, "PRAGMA repository.page_size")) bytes/page,
199 @ %,d(db_int(0, "PRAGMA repository.freelist_count")) free pages,
200 @ %s(db_text(0, "PRAGMA repository.encoding")),
201 @ %s(db_text(0, "PRAGMA repository.journal_mode")) mode
202 @ </td></tr>
 
 
 
 
 
 
 
 
203 if( g.perm.Admin && email_enabled() ){
204 const char *zDest = db_get("email-send-method",0);
205 int nSub, nASub, nPend, nDPend;
206 const char *zDir, *zDb, *zCmd;
207 @ <tr><th>Outgoing&nbsp;Email:</th><td>
208
--- src/stat.c
+++ src/stat.c
@@ -198,10 +198,18 @@
198 @ %d(db_int(0, "PRAGMA repository.page_size")) bytes/page,
199 @ %,d(db_int(0, "PRAGMA repository.freelist_count")) free pages,
200 @ %s(db_text(0, "PRAGMA repository.encoding")),
201 @ %s(db_text(0, "PRAGMA repository.journal_mode")) mode
202 @ </td></tr>
203 if( g.perm.Admin && g.zErrlog && g.zErrlog[0] ){
204 i64 szFile = file_size(g.zErrlog, ExtFILE);
205 if( szFile>=0 ){
206 @ <tr><th>Error Log:</th>
207 @ <td><a href='%R/errorlog'>%h(g.zErrlog)</a> (%,lld(szFile) bytes)
208 }
209 @ </td></tr>
210 }
211 if( g.perm.Admin && email_enabled() ){
212 const char *zDest = db_get("email-send-method",0);
213 int nSub, nASub, nPend, nDPend;
214 const char *zDir, *zDb, *zCmd;
215 @ <tr><th>Outgoing&nbsp;Email:</th><td>
216

Keyboard Shortcuts

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