-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
b/390177544 cart: Support dynamic mercury/libfabric loglevels (#15738)
Mercury and libfabric are much too spammy to enable at lower than warning level by default. Mercury does support adjustment of its log level and logged subsystems at runtime, so this patch provides access to that functionality from the existing `dmg server set-logmasks` tool. This version of the patch adds support for writing mercury/libfabric debug logs to a separate file, in order to avoid undue burden on the cloud logging pipeline. To use it, set HG_DBG_LOG_FILE in the engine config to a logfile path. NB: This is a "raw" log file, i.e. no rotation is done and it's flushed once per second. To enable debug logging for just the mercury/libfabric libraries: dmg server set-logmasks -m EXTERNAL=DEBUG To disable debug logging again: dmg server set-logmasks -m EXTERNAL=ERR Note that the CaRT/Mercury wrapper (crt_hg.c) still uses the normal dlog logger with the "hg" facility. If debug logging in this file is desired, then the mask HG=DEBUG may be used for set-logmasks. Be aware that the debug logging produced by this file is rather copious and may cause problems for cloud logging, however! Change-Id: Ib6fb74c42507dbfba2c5984a92433ad43b6e2df3 Signed-off-by: Michael MacDonald <[email protected]>
- Loading branch information
Showing
5 changed files
with
126 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters