Skip to content

Commit

Permalink
lib-master: Add how long request took for "Internal auth failure" errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jun 8, 2018
1 parent 1367401 commit 7cf910e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib-master/master-login-auth.c
Expand Up @@ -292,8 +292,10 @@ master_login_auth_input_fail(struct master_login_auth *auth,
"Internal auth failure");
} else {
i_error("Internal auth failure: %s "
"(client-pid=%u client-id=%u)",
error, request->client_pid, request->auth_id);
"(Request took %"PRIdTIME_T" secs, "
"client-pid=%u client-id=%u)",
error, ioloop_time - request->create_stamp,
request->client_pid, request->auth_id);
request->callback(NULL, error, request->context);
}
i_free(request);
Expand Down

0 comments on commit 7cf910e

Please sign in to comment.