Fossil

Diff
Login

Diff

Differences From Artifact [09b32d29dc]:

To Artifact [7c76e78099]:


131
132
133
134
135
136
137
138

139
140
141
142
143
144
145
131
132
133
134
135
136
137

138
139
140
141
142
143
144
145







-
+







static char *backofficeDb = 0;

/*
** Log backoffice activity to a file named here.  If not NULL, this
** overrides the "backoffice-logfile" setting of the database.  If NULL,
** the "backoffice-logfile" setting is used instead.
*/
static char *backofficeLogfile = 0;
static const char *backofficeLogfile = 0;

/*
** Write backoffice log messages to this connection:
*/
static FILE *backofficeLog = 0;

/*
580
581
582
583
584
585
586
587

588
589
590
591
592
593
594
580
581
582
583
584
585
586

587
588
589
590
591
592
593
594







-
+







** This routine runs to do the backoffice processing.  When adding new
** backoffice processing tasks, add them here.
*/
void backoffice_work(void){
  /* Log the backoffice run for testing purposes.  For production deployments
  ** the "backoffice-logfile" property should be unset and the following code
  ** should be a no-op. */
  char *zLog = backofficeLogfile;
  const char *zLog = backofficeLogfile;
  int nAlert = 0;
  int nSmtp = 0;
#if !defined(_WIN32)
  struct timeval sStart, sEnd;
#endif
  if( zLog==0 ) db_get("backoffice-logfile",0);
  if( zLog && zLog[0] ){