Skip to content

Commit

Permalink
fix(logger): don't trim text if maxWidth is NaN or <10
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Jul 31, 2022
1 parent 35f9fd2 commit 5415582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/mobile/device-log-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class DeviceLogProvider extends DeviceLogProviderBase {

// console.log(prefix, fullLine);
// return;
if (fullLine.length < maxWidth) {
if (!maxWidth || maxWidth < 10 || fullLine.length < maxWidth) {
console.log(prefix, fullLine);
} else {
for (let i = 0; i < fullLine.length; i += maxWidth) {
Expand Down

0 comments on commit 5415582

Please sign in to comment.