Skip to content

Commit

Permalink
HPCC-30696 JTrace log output category
Browse files Browse the repository at this point in the history
- Creates new MCoperatorTrace
- All JTrace output uses MCoperatorTrace

Signed-off-by: Rodrigo Pastrana <[email protected]>
  • Loading branch information
rpastrana committed Oct 28, 2023
1 parent c0ec1dc commit 4228e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions system/jlib/jlog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,7 @@ constexpr LogMsgCategory MCdebugInfo(MSGAUD_programmer, MSGCLS_information, Debu
constexpr LogMsgCategory MCauditInfo(MSGAUD_audit, MSGCLS_information, AudMsgThreshold);
constexpr LogMsgCategory MCoperatorInfo(MSGAUD_operator, MSGCLS_information, InfoMsgThreshold);
constexpr LogMsgCategory MCoperatorMetric(MSGAUD_operator, MSGCLS_metric, ErrMsgThreshold);
constexpr LogMsgCategory MCoperatorTrace(MSGAUD_monitor, MSGCLS_event, ProgressMsgThreshold);

/*
* Function to determine log level (detail) for exceptions, based on log message class
Expand Down
4 changes: 2 additions & 2 deletions system/jlib/jtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class CSpan : public CInterfaceOf<ISpan>
{
StringBuffer out;
toLog(out);
DBGLOG("Span end: {%s}", out.str());
LOG(MCoperatorTrace, "Span end: {%s}", out.str());
}

const char * getSpanID() const
Expand Down Expand Up @@ -449,7 +449,7 @@ class CSpan : public CInterfaceOf<ISpan>

StringBuffer out;
toLog(out);
DBGLOG("Span start: {%s}", out.str());
LOG(MCoperatorTrace, "Span start: {%s}", out.str());
}

}
Expand Down

0 comments on commit 4228e60

Please sign in to comment.