diff options
author | nicm <nicm> | 2015-11-24 21:19:46 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-11-24 21:19:46 +0000 |
commit | 9cccb8c1159b0a4747b5152e2df08e42207b574d (patch) | |
tree | 61099cb87d37ada9605022281a705c1ddf73c121 /tmux.c | |
parent | 4ec61bef461aba6d5849bce971a241850b8d7ef6 (diff) | |
download | rtmux-9cccb8c1159b0a4747b5152e2df08e42207b574d.tar.gz rtmux-9cccb8c1159b0a4747b5152e2df08e42207b574d.tar.bz2 rtmux-9cccb8c1159b0a4747b5152e2df08e42207b574d.zip |
Make the log stuff a bit tidier with some helper functions.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -44,7 +44,6 @@ struct options *global_w_options; /* window options */ struct environ *global_environ; char *shell_cmd; -int debug_level; time_t start_time; char socket_path[PATH_MAX]; @@ -61,18 +60,6 @@ usage(void) exit(1); } -void -logfile(const char *name) -{ - char *path; - - if (debug_level > 0) { - xasprintf(&path, "tmux-%s-%ld.log", name, (long) getpid()); - log_open(path); - free(path); - } -} - const char * getshell(void) { @@ -243,7 +230,7 @@ main(int argc, char **argv) flags |= CLIENT_UTF8; break; case 'v': - debug_level++; + log_add_level(); break; default: usage(); |