inspect: don't create and add an stderr logger in inspect_main

it's already created and added in the PICOM_MAIN function.

this fixes some messages being printed twice when using picom-inspect.
This commit is contained in:
Maxim Solovyov 2024-04-17 21:10:14 +03:00
parent af27c384ad
commit 7680091c51
No known key found for this signature in database
1 changed files with 0 additions and 5 deletions

View File

@ -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");