Skip to content

Commit

Permalink
feat(LogsPanelScene): combine wrapLogMesasage with prettifyLogMessage (
Browse files Browse the repository at this point in the history
  • Loading branch information
matyax authored Dec 9, 2024
1 parent d71fb44 commit 65d52bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Components/ServiceScene/LogOptionsScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class LogOptionsScene extends SceneObjectBase<LogOptionsState> {
this.setState({ wrapLogMessage: type });
setLogOption('wrapLogMessage', type);
this.getParentScene().setLogsVizOption({ wrapLogMessage: type });
this.getParentScene().setLogsVizOption({ prettifyLogMessage: type });
};

onChangeLogsSortOrder = (sortOrder: LogsSortOrder) => {
Expand Down
1 change: 1 addition & 0 deletions src/Components/ServiceScene/LogsPanelScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class LogsPanelScene extends SceneObjectBase<LogsPanelSceneState> {
.setOption('displayedFields', parentModel.state.displayedFields)
.setOption('sortOrder', getLogsPanelSortOrder())
.setOption('wrapLogMessage', Boolean(getLogOption<boolean>('wrapLogMessage', false)))
.setOption('prettifyLogMessage', Boolean(getLogOption<boolean>('wrapLogMessage', false)))
.setOption('showLogContextToggle', true)
// @ts-expect-error Requires Grafana 11.4
.setOption('enableInfiniteScrolling', true)
Expand Down

0 comments on commit 65d52bc

Please sign in to comment.