From 411d573ba986af636e01dc07796954385b8ba4c7 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 3 Apr 2016 20:23:43 -0700 Subject: convert atypical env_universal_common logging This is a quick and dirty conversion of the atypical, and undocumented, logging done by env_universal_common.cpp to the usual `debug()` pattern. I didn't want to drop the messages because they could be useful when debugging future issues. So I simply converted them to the lowest debug level using the normal debug() function. Fixes #2887 --- src/env_universal_common.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/env_universal_common.h') diff --git a/src/env_universal_common.h b/src/env_universal_common.h index 60cf0027..edc36016 100644 --- a/src/env_universal_common.h +++ b/src/env_universal_common.h @@ -167,13 +167,7 @@ public: virtual bool notification_fd_became_readable(int fd); }; -bool universal_log_enabled(); -#define UNIVERSAL_LOG(x) do { if (universal_log_enabled()) fprintf(stderr, "UNIVERSAL LOG: %s\n", x); } while (0) - /* Environment variable for requesting a particular universal notifier. See fetch_default_strategy_from_environment for names. */ #define UNIVERSAL_NOTIFIER_ENV_NAME "fish_universal_notifier" -/* Environment variable for enabling universal variable logging (to stderr) */ -#define UNIVERSAL_LOGGING_ENV_NAME "fish_universal_log" - #endif -- cgit v1.2.3