mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Setup logging early
This commit is contained in:
parent
fa4ae885ea
commit
f1c8975b6d
@ -164,15 +164,15 @@ int main(int argc, char **argv, char **envp)
|
||||
}
|
||||
}
|
||||
|
||||
init_logging("tmate-remote-tmux",
|
||||
tmate_settings->use_syslog, tmate_settings->log_level);
|
||||
|
||||
if (!tmate_settings->tmate_host)
|
||||
tmate_settings->tmate_host = get_full_hostname();
|
||||
|
||||
cmdline = *argv;
|
||||
cmdline_end = *envp;
|
||||
|
||||
init_logging("tmate-remote-tmux",
|
||||
tmate_settings->use_syslog, tmate_settings->log_level);
|
||||
|
||||
tmate_preload_trace_lib();
|
||||
|
||||
if ((dev_urandom_fd = open("/dev/urandom", O_RDONLY)) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user