Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable "verbose"-outputs if used package in js scripts #86

Closed
WuglyakBolgoink opened this issue Mar 12, 2020 · 1 comment
Closed

Disable "verbose"-outputs if used package in js scripts #86

WuglyakBolgoink opened this issue Mar 12, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@WuglyakBolgoink
Copy link

if I set logstream: null, then I have an error:

[Cannot read property 'write' of null]

How can I disable debug logs?

my config:

    cres.run({
        platforms: {
            android: {icon: {sources: [iconPath]}, splash: {sources: [splashScreenPath]}},
            ios: {icon: {sources: [iconPath]}, splash: {sources: [splashScreenPath]}},
        },
        logstream: null, // Any WritableStream
        errstream: process.stderr, // Any WritableStream
        resourcesDirectory: outputDir,
        directory: outputDir
    })
        .then((response) => {
            spinner.stop();
            console.log(' ' + '✓'.green + ' Done!');
        })
        .catch((error) => {
            spinner.stop();
            console.error(`[${error.message}] error:`, error);
            process.exit(1);
        });
@imhoffd
Copy link
Contributor

imhoffd commented Mar 12, 2020

Yeah--we should handle this use case.

As a workaround, you could use a null stream (https://www.npmjs.com/package/dev-null)

@imhoffd imhoffd added the enhancement New feature or request label Mar 12, 2020
imhoffd added a commit that referenced this issue Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants