nsjconf->tlimit = njc->time_limit;
nsjconf->daemonize = njc->daemon;
- nsjconf->log_fd = njc->log_fd;
+ if (njc->has_log_fd) {
+ nsjconf->log_fd = njc->log_fd;
+ }
nsjconf->logfile = utilStrDup(njc->log_file);
if (njc->has_log_level) {
switch (njc->log_level) {
}
}
- if (njc->log_file || njc->has_log_level) {
+ if (njc->has_log_fd || njc->log_file || njc->has_log_level) {
if (logInitLogFile(nsjconf) == false) {
return false;
}
required bool daemon = 14 [ default = false ];
/* FD to log to. */
- required int32 log_fd = 61 [ default = 2 ];
+ optional int32 log_fd = 61;
/* File to save lofs to */
optional string log_file = 15;
/* Minimum log level displayed.