-
Notifications
You must be signed in to change notification settings - Fork 157
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
Error : Digest method not supported while using winston.transports.DailyRotate #340
Comments
From createHash docs:
Can you please run that command on your platform and see if |
|
This looks like a system configuration issue rather than necessarily a bug in Winston. There may be some setting on your system that disabled md5 hashing as it's a pretty weak hash. Please note that when posting related questions in multiple places, it is best practice to include cross-links so that those coming after you who might encounter a similar issue can connect through to one where there might've been some progress; I would have expected to see cross links between this and your Stack Overflow question as well as with any new question you might open in file-stream-rotator. Splitting the questions without cross-links and filing on the wrong repo makes open-source work harder than it otherwise should be; please be more considerate of this next time. |
Thanks a lot @wbt for providing the information. Also posted the question in FileStreamRotator repo to get more information: rogerc/file-stream-rotator#90 Question posted in stack-overflow : https://stackoverflow.com/questions/71552510/error-digest-method-not-supported-while-using-winston-transports-dailyrotate |
@wbt
Please check : rogerc/file-stream-rotator#90 |
Open to PRs. |
Created pull request : #344 |
@wbt Could you please verify and merge this request? We have 1 critical issue need to be fixed immediately. |
Thanks @patilms16 for the fix. We recently upgraded our system and facing the similar issue. @mattberther @indexzero Can you please help with Merging request 344. This will unblock us and allow us to continue using winston daily rotate. Appreciate your help. |
@wbt Thanks for the merge. @mattberther Can you please publish this to npm |
Pushed as |
Environment :
OS : SUSE Linux Enterprise Server 15 SP2
Node: 14.16.0
Express: 4.17.1,
winston: 3.2.1,
winston-daily-rotate-file: 4.4.2
I am using following code :
and getting error from crypto submodule of nodejs as "Digest method not supported"
Below is actual line which was throwing error from File "FileStreamRotator.js" under node_modules :
crypto.createHash('md5').update(logfile + "LOG_FILE" + time).digest("hex")
Can someone please help to identify the issue here and probable solution?
stack-overflow : https://stackoverflow.com/questions/71552510/error-digest-method-not-supported-while-using-winston-transports-dailyrotate
The text was updated successfully, but these errors were encountered: