mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
log: one default log filename
Lets use one default log filename. User can set if in request, if needed. Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
cdba0c87bf
commit
dbced2f013
@@ -114,7 +114,7 @@ static int setup_dump_from_req(int sk, CriuOpts *req)
|
||||
if (req->log_file)
|
||||
opts.output = req->log_file;
|
||||
else
|
||||
opts.output = DEFAULT_DUMP_LOG_FILENAME;
|
||||
opts.output = DEFAULT_LOG_FILENAME;
|
||||
|
||||
log_set_loglevel(req->log_level);
|
||||
if (log_init(opts.output) == -1) {
|
||||
|
@@ -59,7 +59,6 @@ extern int write_pidfile(char *pfname, int pid);
|
||||
#define pr_perror(fmt, ...) \
|
||||
pr_err(fmt ": %m\n", ##__VA_ARGS__)
|
||||
|
||||
#define DEFAULT_DUMP_LOG_FILENAME "dump.log"
|
||||
#define DEFAULT_RESTORE_LOG_FILENAME "restore.log"
|
||||
#define DEFAULT_LOG_FILENAME "criu.log"
|
||||
|
||||
#endif /* __CR_LOG_H__ */
|
||||
|
Reference in New Issue
Block a user