Improve the debugging output

This commit is contained in:
Pierre Pronchery 2015-06-13 11:42:22 -04:00
parent 9332f7b8be
commit ef1a255b54
2 changed files with 7 additions and 3 deletions

View File

@ -327,6 +327,10 @@ static String * _new_interface(String const * app)
if((var = string_new_append("APPINTERFACE_", app, NULL)) == NULL)
return NULL;
interface = getenv(var);
#ifdef DEBUG
fprintf(stderr, "DEBUG: %s() \"%s\" \"%s\"\n", __func__, var,
interface);
#endif
string_delete(var);
if(interface != NULL)
return interface;

View File

@ -196,10 +196,10 @@ static String * _new_app_name(AppTransportMode mode, char const * app,
/* obtain the desired transport and name from the environment */
if((var = string_new_append("APPSERVER_", app, NULL)) == NULL)
return NULL;
#ifdef DEBUG
fprintf(stderr, "DEBUG: %s() \"%s\"\n", __func__, var);
#endif
name = getenv(var);
#ifdef DEBUG
fprintf(stderr, "DEBUG: %s() \"%s\" \"%s\"\n", __func__, var, name);
#endif
string_delete(var);
if(name == NULL)
{