mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 21:30:14 -05:00
More logging info for scrub and commandline.
This commit is contained in:
parent
35fb2085dc
commit
2652438f6d
4 changed files with 37 additions and 18 deletions
|
|
@ -361,8 +361,6 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
|
|||
unsigned line;
|
||||
tommy_node* i;
|
||||
unsigned l;
|
||||
time_t t;
|
||||
struct tm* tm;
|
||||
|
||||
/* copy the options */
|
||||
state->opt = *opt;
|
||||
|
|
@ -373,18 +371,7 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
|
|||
|
||||
state->command = command;
|
||||
|
||||
t = time(0);
|
||||
tm = localtime(&t);
|
||||
|
||||
fprintf(stdlog, "version:%s\n", PACKAGE_VERSION);
|
||||
fprintf(stdlog, "unixtime:%"PRIi64"\n", (int64_t)t);
|
||||
if (tm) {
|
||||
char datetime[64];
|
||||
strftime(datetime, sizeof(datetime), "%Y-%m-%d %H:%M:%S", tm);
|
||||
fprintf(stdlog, "time:%s\n", datetime);
|
||||
}
|
||||
fprintf(stdlog, "conf:%s\n", path);
|
||||
fflush(stdlog);
|
||||
|
||||
f = sopen_read(path);
|
||||
if (!f) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue