Skip to content

Commit

Permalink
Remove more calls to radlog
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Apr 1, 2013
1 parent e6bd013 commit 05cab93
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/modules/rlm_eap/types/rlm_eap_ikev2/rlm_eap_ikev2.c
Expand Up @@ -119,11 +119,11 @@ static void ikev2_free_opaque(void *opaque)
struct IKEv2Data *ikev2_data=(struct IKEv2Data*)opaque;
if(ikev2_data->session) {
if(ikev2_data->session->Status!=IKEv2_SST_ESTABLISHED) {
radlog(L_DBG, IKEv2_LOG_PREFIX "Unfinished IKEv2 session - cleanup!!!");
DEBUG(IKEv2_LOG_PREFIX "Unfinished IKEv2 session - cleanup!!!");
IKEv2EndSession(ikev2_data->i2,ikev2_data->session);
ikev2_data->session=NULL;
} else {
radlog(L_DBG, IKEv2_LOG_PREFIX "Unfinished IKEv2 session - keep it!!!");
DEBUG(IKEv2_LOG_PREFIX "Unfinished IKEv2 session - keep it!!!");
ikev2_data->session=NULL;
}
}
Expand Down Expand Up @@ -298,7 +298,7 @@ static int ikev2_initiate(void *instance, eap_handler_t *handler)
return 1;
}
} else {
radlog(L_DBG, IKEv2_LOG_PREFIX "Fast reconnect procedure start");
DEBUG(IKEv2_LOG_PREFIX "Fast reconnect procedure start");
}
session->timestamp=time(NULL);

Expand Down
2 changes: 1 addition & 1 deletion src/modules/rlm_perl/rlm_perl.c
Expand Up @@ -186,7 +186,7 @@ static void rlm_perl_close_handles(void **handles)
}

for (i=0; handles[i]; i++) {
radlog(L_DBG, "close %p\n", handles[i]);
DEBUG("close %p\n", handles[i]);
dlclose(handles[i]);
}

Expand Down
6 changes: 3 additions & 3 deletions src/modules/rlm_python/rlm_python.c
Expand Up @@ -219,7 +219,7 @@ static int mod_init(void)

PyEval_ReleaseLock(); /* Drop lock grabbed by InitThreads */

radlog(L_DBG, "mod_init done");
DEBUG("mod_init done");
return 0;

failed:
Expand Down Expand Up @@ -310,9 +310,9 @@ static void mod_vptuple(TALLOC_CTX *ctx, VALUE_PAIR **vps, PyObject *pValue,
s2 = PyString_AsString(pStr2);
vp = pairmake(ctx, vps, s1, s2, op);
if (vp != NULL) {
radlog(L_DBG, "rlm_python:%s: '%s' = '%s'", funcname, s1, s2);
DEBUG("rlm_python:%s: '%s' = '%s'", funcname, s1, s2);
} else {
radlog(L_DBG, "rlm_python:%s: Failed: '%s' = '%s'", funcname, s1, s2);
DEBUG("rlm_python:%s: Failed: '%s' = '%s'", funcname, s1, s2);
}
}
}
Expand Down
6 changes: 2 additions & 4 deletions src/modules/rlm_rest/rest.c
Expand Up @@ -231,9 +231,7 @@ int rest_init(rlm_rest_t *instance)
return FALSE;
}

radlog(L_DBG, "rlm_rest (%s): CURL library version: %s",
instance->xlat_name,
curl_version());
DEBUG("rlm_rest (%s): CURL library version: %s", instance->xlat_name, curl_version());

return TRUE;
}
Expand Down Expand Up @@ -308,7 +306,7 @@ void *rest_socket_create(void *instance)
inst->connect_uri);
if (ret != CURLE_OK) goto error;

radlog(L_DBG, "rlm_rest (%s): Connecting to \"%s\"",
DEBUG("rlm_rest (%s): Connecting to \"%s\"",
inst->xlat_name,
inst->connect_uri);

Expand Down

0 comments on commit 05cab93

Please sign in to comment.