Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Disable or change log files #181

Open
Finesse opened this issue Oct 7, 2020 · 2 comments
Open

Disable or change log files #181

Finesse opened this issue Oct 7, 2020 · 2 comments

Comments

@Finesse
Copy link

Finesse commented Oct 7, 2020

When Karma runs with a launcher provided by karma-browserstack-launcher, 2 files appear in CWD:

  • local.log
  • browserstack.err It always contains only [object Object] and therefore useless

These files can be useful, but what if I don't want to clutter my project root directory and what if other tools write to the same files. Is there a way to disable creating the files or change their location or print to stdout instead? If no, then I request this feature.

@shawnlobo96
Copy link

@Finesse

The local.log file is generated by the browserstack-local dependency for establishing the local tunnel connection.

To disable the log, you'll need to modify node_modules/browserstack-local-nodejs/lib/Local.js

Comment Line: https://github.com/browserstack/browserstack-local-nodejs/blob/master/lib/Local.js#L39
and remove '--log-file', this.logfile, from the list of args on on https://github.com/browserstack/browserstack-local-nodejs/blob/master/lib/Local.js#L209

@Finesse
Copy link
Author

Finesse commented Oct 8, 2020

@shawnlobo96 Thanks. I can use patch-package to keep the change in my repository. But this is a dirty hack.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants