#8759 RFE: Extend logging to include execution time
Closed: fixed 2 years ago by frenaud. Opened 3 years ago by antorres.

Request for enhancement

Adding execution time in logs provides useful information for identifying API operations that impact IPA performance. This should be added as a debug option, in order to only add additional instructions and log lines when needed. Output should include time spent in each operation with the maximum resolution available.

[Mon Mar 15 12:32:13.467490 2021] [wsgi:error] [pid 14895:tid 15355] [remote fe80::f816:3eff:fedd:a779%eth0:33040] ipa: INFO: [jsonserver_session] admin@IPA.LOCAL: user_add/1('testuser2', givenname='test', sn='test', version='2.240'): SUCCESS
[Mon Mar 15 12:32:13.467588 2021] [wsgi:error] [pid 14895:tid 15355] [remote fe80::f816:3eff:fedd:a779%eth0:33040] ipa: DEBUG: [jsonserver_session] admin@IPA.LOCAL: user_add/1('testuser2', givenname='test', sn='test', version='2.240'): SUCCESS 0.24110692400063272

Metadata Update from @antorres:
- Issue assigned to antorres

3 years ago

master:

  • 4d716d3 Extend logging to include execution time

ipa-4-9:

  • e880d38 Extend logging to include execution time

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata