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 authored and villesavolainen committed May 18, 2018
1 parent e6ebaf7 commit a9e7899
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 @@ -296,8 +296,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 %ld secs, "
"client-pid=%u client-id=%u)",
error, (long)(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 a9e7899

Please sign in to comment.