Fossil SCM

Report the phase of operation in error log messages.

drh 2024-07-29 11:25 trunk
Commit 49f676e3b3c8c39e693232b4ec84cdb0954ec4be532d6e71ad7ad544c2c0bef7
1 file changed +1
--- src/printf.c
+++ src/printf.c
@@ -1073,10 +1073,11 @@
10731073
zFormat++;
10741074
}
10751075
vfprintf(out, zFormat, ap);
10761076
fprintf(out, "\n");
10771077
va_end(ap);
1078
+ if( g.zPhase!=0 ) fprintf(out, "while in %s\n", g.zPhase);
10781079
if( bDetail ){
10791080
cgi_print_all(1,3,out);
10801081
}else{
10811082
for(i=0; i<count(azEnv); i++){
10821083
char *p;
10831084
--- src/printf.c
+++ src/printf.c
@@ -1073,10 +1073,11 @@
1073 zFormat++;
1074 }
1075 vfprintf(out, zFormat, ap);
1076 fprintf(out, "\n");
1077 va_end(ap);
 
1078 if( bDetail ){
1079 cgi_print_all(1,3,out);
1080 }else{
1081 for(i=0; i<count(azEnv); i++){
1082 char *p;
1083
--- src/printf.c
+++ src/printf.c
@@ -1073,10 +1073,11 @@
1073 zFormat++;
1074 }
1075 vfprintf(out, zFormat, ap);
1076 fprintf(out, "\n");
1077 va_end(ap);
1078 if( g.zPhase!=0 ) fprintf(out, "while in %s\n", g.zPhase);
1079 if( bDetail ){
1080 cgi_print_all(1,3,out);
1081 }else{
1082 for(i=0; i<count(azEnv); i++){
1083 char *p;
1084

Keyboard Shortcuts

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