1
0
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:
Nicolas Viennot 2016-03-10 18:48:15 -05:00
parent fa4ae885ea
commit f1c8975b6d

View File

@ -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) if (!tmate_settings->tmate_host)
tmate_settings->tmate_host = get_full_hostname(); tmate_settings->tmate_host = get_full_hostname();
cmdline = *argv; cmdline = *argv;
cmdline_end = *envp; cmdline_end = *envp;
init_logging("tmate-remote-tmux",
tmate_settings->use_syslog, tmate_settings->log_level);
tmate_preload_trace_lib(); tmate_preload_trace_lib();
if ((dev_urandom_fd = open("/dev/urandom", O_RDONLY)) < 0) if ((dev_urandom_fd = open("/dev/urandom", O_RDONLY)) < 0)