Fossil SCM
Put a link to the error log on the /stat page. The link is only visible to administrators.
Commit
488709be44f806e3706bd9d6e1b70fb2e8ad3868042d894ff94b419c077bed55
Parent
8e3bad04eef13d8…
1 file changed
+8
+8
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -198,10 +198,18 @@ | ||
| 198 | 198 | @ %d(db_int(0, "PRAGMA repository.page_size")) bytes/page, |
| 199 | 199 | @ %,d(db_int(0, "PRAGMA repository.freelist_count")) free pages, |
| 200 | 200 | @ %s(db_text(0, "PRAGMA repository.encoding")), |
| 201 | 201 | @ %s(db_text(0, "PRAGMA repository.journal_mode")) mode |
| 202 | 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 | + } | |
| 203 | 211 | if( g.perm.Admin && email_enabled() ){ |
| 204 | 212 | const char *zDest = db_get("email-send-method",0); |
| 205 | 213 | int nSub, nASub, nPend, nDPend; |
| 206 | 214 | const char *zDir, *zDb, *zCmd; |
| 207 | 215 | @ <tr><th>Outgoing Email:</th><td> |
| 208 | 216 |
| --- 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 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 Email:</th><td> |
| 216 |