Skip to content

Commit

Permalink
The default destination for log output for a request is the default_log
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jan 29, 2016
1 parent 4376c45 commit 31efcb4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,16 @@ REQUEST *request_alloc(TALLOC_CTX *ctx)
request->username = NULL;
request->password = NULL;
gettimeofday(&request->timestamp, NULL);
request->log.lvl = rad_debug_lvl; /* Default to global debug level */

/*
* These may be changed later by request_pre_handler
*/
request->log.lvl = rad_debug_lvl; /* Default to global debug level */
request->log.func = vradlog_request;
request->log.output = &default_log;

request->module = NULL;
request->component = "<core>";
request->log.func = vradlog_request;

request->state_ctx = talloc_init("session-state");

Expand Down

0 comments on commit 31efcb4

Please sign in to comment.