-
Notifications
You must be signed in to change notification settings - Fork 10
Don't duplicate the messages from logcat #544
Conversation
❤️ |
👍 |
@@ -10,7 +12,7 @@ export class LogcatHelper implements Mobile.ILogcatHelper { | |||
private $staticConfig: Config.IStaticConfig) { } | |||
|
|||
public start(deviceIdentifier: string): void { | |||
if(deviceIdentifier) { | |||
if (deviceIdentifier && !this.isStarted) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this check should be per deviceIdentifier or we'll always have logs only for the first connected device (this will break Proton) :)
65bc4e1
to
1a38a63
Compare
❤️ |
Maybe I'm not correct, but what will happen in the following scenario:
Maybe a better solution is to add new property to IDevice that indicates if logging is started and it will call LogcatHelper internally. As when new device is attached, I believe we create new instance of IDevice, so the above scenario could work fine there. Of course there could be various other solutions :) |
1a38a63
to
cffe2f8
Compare
❤️ |
If some device is disconnected, |
great, 👍 |
Don't duplicate the messages from logcat
Fixes NativeScript/nativescript-cli#1130