Skip to content

Commit

Permalink
Fix EnableTags setting for structured logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlias committed Jan 15, 2022
1 parent f97fe46 commit 0e5af7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rbxts/zircon",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "out/init.lua",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/Client/Components/StructuredLogMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class StructuredLogMessageComponent extends Roact.Component<StructuredLogMessage
messages.push(getRichTextColor3(theme, "Red", text));
}

if (SourceContext !== undefined) {
if (SourceContext !== undefined && this.props.showTagsInOutput) {
messages.push(
"- " + italicize(getRichTextColor3(theme, "Grey", tostring(LogEvent.SourceContext))),
);
Expand Down Expand Up @@ -193,10 +193,12 @@ class StructuredLogMessageComponent extends Roact.Component<StructuredLogMessage

export interface MappedProps {
readonly logDetailsPaneEnabled: boolean;
readonly showTagsInOutput: boolean;
}
const mapStateToProps = (props: ConsoleReducer): MappedProps => {
return {
logDetailsPaneEnabled: props.logDetailsPaneEnabled,
showTagsInOutput: props.showTagsInOutput,
};
};

Expand Down

0 comments on commit 0e5af7c

Please sign in to comment.