diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-05-25 08:28:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-05-25 08:28:10 +0000 |
commit | 196710e2d3602832595626aa8ec5973247aaff17 (patch) | |
tree | 7ba3069864e0396dac28ec8acecc424a99c06679 /tmux.c | |
parent | 1f23f6d68608716f93e9262cbb2abc335ef88401 (diff) | |
download | rtmux-196710e2d3602832595626aa8ec5973247aaff17.tar.gz rtmux-196710e2d3602832595626aa8ec5973247aaff17.tar.bz2 rtmux-196710e2d3602832595626aa8ec5973247aaff17.zip |
Simplify logging and just fprintf(stderr, ...) for early errors.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -73,7 +73,7 @@ logfile(const char *name) log_close(); if (debug_level > 0) { xasprintf(&path, "tmux-%s-%ld.log", name, (long) getpid()); - log_open_file(debug_level, path); + log_open(debug_level, path); xfree(path); } } @@ -294,8 +294,6 @@ main(int argc, char **argv) if (shell_cmd != NULL && argc != 0) usage(); - log_open_tty(debug_level); - if (!(flags & IDENTIFY_UTF8)) { /* * If the user has set whichever of LC_ALL, LC_CTYPE or LANG @@ -379,7 +377,7 @@ main(int argc, char **argv) /* -L or default set. */ if (label != NULL) { if ((path = makesocketpath(label)) == NULL) { - log_warn("can't create socket"); + fprintf(stderr, "can't create socket\n"); exit(1); } } |