Demote "Document not focused" error from Electron
Summary: Comes from Electron. Will go away with PWA. Reviewed By: lblasa Differential Revision: D48778132 fbshipit-source-id: 0cecdc38e76b663315434aec995635afca2959dc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
981a0ed6c8
commit
50d31cb1f7
@@ -74,6 +74,11 @@ function transformLogLevel(level: LoggerTypes, message: string) {
|
|||||||
if (message.includes('Watchman was not found in PATH')) {
|
if (message.includes('Watchman was not found in PATH')) {
|
||||||
return 'warn';
|
return 'warn';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Random Electron error, not actionable.
|
||||||
|
if (message.includes('Document is not focused')) {
|
||||||
|
return 'warn';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return level;
|
return level;
|
||||||
|
|||||||
Reference in New Issue
Block a user