Improve the debugging output
This commit is contained in:
parent
9332f7b8be
commit
ef1a255b54
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user