Skip to content

Commit

Permalink
Merge pull request #1245 from absolutelynothelix/stderr-logger
Browse files Browse the repository at this point in the history
inspect: don't create and add an stderr logger in inspect_main
  • Loading branch information
absolutelynothelix authored Apr 29, 2024
2 parents af27c38 + 7680091 commit 2052bc7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/inspect.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@ bool c2_match_once_and_log(const c2_lptr_t *cond, void *data) {
#define BOLD(str) "\033[1m" str "\033[0m"

int inspect_main(int argc, char **argv, const char *config_file) {
auto stderr_logger = stderr_logger_new();
if (stderr_logger) {
log_add_target_tls(stderr_logger);
}

Display *dpy = XOpenDisplay(NULL);
if (!dpy) {
log_fatal("Can't open display");
Expand Down

0 comments on commit 2052bc7

Please sign in to comment.