Fix executor verbosity (issue #699)
This commit is contained in:
parent
131704081c
commit
d1f5a46a73
4 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2018-04-17 master
|
2018-04-17 master
|
||||||
- Update AUTHORS
|
- Update AUTHORS
|
||||||
|
- Fixes:
|
||||||
|
- Fix leak in image loading (issue #704)
|
||||||
|
- Executors no longer log unless env var DEBUG_EXECUTORS is set
|
||||||
|
|
||||||
2018-04-17 16.3
|
2018-04-17 16.3
|
||||||
- Fixes:
|
- Fixes:
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#define MAX_TOOLTIP_LEN 4096
|
#define MAX_TOOLTIP_LEN 4096
|
||||||
|
|
||||||
|
bool debug_executors = false;
|
||||||
|
|
||||||
void execp_timer_callback(void *arg);
|
void execp_timer_callback(void *arg);
|
||||||
char *execp_get_tooltip(void *obj);
|
char *execp_get_tooltip(void *obj);
|
||||||
void execp_init_fonts();
|
void execp_init_fonts();
|
||||||
|
@ -635,6 +637,7 @@ void execp_timer_callback(void *arg)
|
||||||
close(pipe_fd_stderr[0]);
|
close(pipe_fd_stderr[0]);
|
||||||
return;
|
return;
|
||||||
} else if (child == 0) {
|
} else if (child == 0) {
|
||||||
|
if (debug_executors)
|
||||||
fprintf(stderr, "tint2: Executing: %s\n", execp->backend->command);
|
fprintf(stderr, "tint2: Executing: %s\n", execp->backend->command);
|
||||||
// We are in the child
|
// We are in the child
|
||||||
close(pipe_fd_stdout[0]);
|
close(pipe_fd_stdout[0]);
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
|
|
||||||
|
extern bool debug_executors;
|
||||||
|
|
||||||
// Architecture:
|
// Architecture:
|
||||||
// Panel panel_config contains an array of Execp, each storing all config options and all the state variables.
|
// Panel panel_config contains an array of Execp, each storing all config options and all the state variables.
|
||||||
// Only these run commands.
|
// Only these run commands.
|
||||||
|
|
|
@ -106,6 +106,7 @@ void handle_env_vars()
|
||||||
debug_dnd = getenv("DEBUG_DND") != NULL;
|
debug_dnd = getenv("DEBUG_DND") != NULL;
|
||||||
debug_thumbnails = getenv("DEBUG_THUMBNAILS") != NULL;
|
debug_thumbnails = getenv("DEBUG_THUMBNAILS") != NULL;
|
||||||
debug_timers = getenv("DEBUG_TIMERS") != NULL;
|
debug_timers = getenv("DEBUG_TIMERS") != NULL;
|
||||||
|
debug_executors = getenv("DEBUG_EXECUTORS") != NULL;
|
||||||
if (debug_fps) {
|
if (debug_fps) {
|
||||||
init_fps_distribution();
|
init_fps_distribution();
|
||||||
char *s = getenv("TRACING_FPS_THRESHOLD");
|
char *s = getenv("TRACING_FPS_THRESHOLD");
|
||||||
|
|
Loading…
Reference in a new issue