Skip to content

Commit

Permalink
Cmd failures should be displayed as errors too
Browse files Browse the repository at this point in the history
Summary:
Styles are applied depending on entry type. This was an issue when we had 'cmd' as a type too.

So, let's simplify and keep type to denote info, warning, or errors.

Later on we can add a different tag if we want to differentiate between logs, command, others.

Reviewed By: passy

Differential Revision: D47912857

fbshipit-source-id: 213a0768a95f63cbd692ba96f6745ab740346a58
  • Loading branch information
lblasa authored and facebook-github-bot committed Jul 31, 2023
1 parent f301de6 commit 143fe0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desktop/flipper-common/src/server-types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export type DeviceLogLevel =

export type ConnectionRecordEntry = {
time: Date;
type: 'cmd' | 'info' | 'error';
type: 'warning' | 'info' | 'error';
device: string;
app: string;
message: string;
Expand Down
2 changes: 1 addition & 1 deletion desktop/flipper-server-core/src/recorder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Recorder {

const entry: CommandRecordEntry = {
time: new Date(),
type: 'cmd',
type: payload.success ? 'info' : 'error',
device,
app,
message: payload.cmd,
Expand Down

0 comments on commit 143fe0e

Please sign in to comment.