-
Notifications
You must be signed in to change notification settings - Fork 47
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
enableLog flag not working #66
Comments
Yeah same issue |
@balman I was able to go around the issue by patching the logger on the fly with my own. I copied Then did this to replace the logger on the fly:
Then you can tweak Note: I ended up with this solution:
|
@doginthehat Thanks for sharing! This looks like a promising interim solution. |
The same is here... @balman any progress with the issue? |
The same behavior here. In my case it's critical because I'm deploying in a serverless infrastructure, which means only read access to file system. Here is my error (related to flag not working) @balman is there any progress to solve this? |
@robertop87 We had the same problem. We were able to go around by patching the logger as per previous comment. It's really disappointing to see how little care Cybersource is giving to this node client, we've had so many issues. 🙄 |
Hi there, I have used "cybersource-rest-client": "^0.0.36" and made EnableLog = false; EnableMasking = false; to resolve the issue. -Srini |
@robertop87 @doginthehat are you able to resolve this issue? Actually, I am also getting the same error while creating the lambda function. Could you please let me know how I can resolve this? |
@adityaDataScientist you need to disable logging using "enableLog" flag in your client configuration. |
Please refer to this sample : https://github.com/CyberSource/cybersource-rest-samples-node/blob/master/Data/Configuration.js#L27 @robertop87 @doginthehat @balman Please let us know if still see the issue. |
Summary
The
enableLog
configuration option is disregarded and log files are generated even when the value isfalse
.Expected Behavior
Specifying
enableLog: false
when creating a new API client should suppress log files from being written to. An example would be as follows:Actual Behavior
When
enableLog: false
is specified, the CyberSource REST client still writes logs to the filesystem.Other Comments
It looks like there was a switch to using the winston-daily-rotate-file package recently, and the
enableLog
option from the CyberSource client is being passed to this transport as part of asilent
option. However, it looks like there is no reference to asilent
option in the documentation for this package and so it may not be a valid option for this transport.The text was updated successfully, but these errors were encountered: