mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-04-05 17:39:20 +02:00
more sql logging
This commit is contained in:
@@ -188,12 +188,12 @@ int add_new_folder(struct session_data *sdata, struct __data *data, char *folder
|
||||
}
|
||||
|
||||
|
||||
void update_import_job_stat(struct session_data *sdata, struct __data *data){
|
||||
void update_import_job_stat(struct session_data *sdata, struct __data *data, struct __config *cfg){
|
||||
char buf[SMALLBUFSIZE];
|
||||
|
||||
snprintf(buf, sizeof(buf)-1, "update import set status=%d, started=%ld, updated=%ld, finished=%ld, total=%d, imported=%d where id=%d", data->import->status, data->import->started, data->import->updated, data->import->finished, data->import->total_messages, data->import->processed_messages, data->import->import_job_id);
|
||||
|
||||
p_query(sdata, buf);
|
||||
p_query(sdata, buf, cfg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user