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

OutboundTLS/plugin-redis missing logerror #3324

Closed
analogic opened this issue Apr 20, 2024 · 5 comments
Closed

OutboundTLS/plugin-redis missing logerror #3324

analogic opened this issue Apr 20, 2024 · 5 comments

Comments

@analogic
Copy link
Collaborator

As far as I understand, OutboundTLS is not a plugin, it doesn't have the logging capabilities that the Redis plugin depends on so it fails spectacularly in this edge case

2024-04-20 10:57:47.891120500  [DEBUG] [-] [OutboundTLS] Will disable outbound TLS for failing TLS hosts
2024-04-20 10:57:47.894424500  [DEBUG] [-] [outbound] todo header length: 914
2024-04-20 10:57:47.898506500  [CRIT] [-] [core] TypeError: this.logerror is not a function
2024-04-20 10:57:47.898511500  [CRIT] [-] [core]     at exports.get_redis_client (/usr/lib/node_modules/Haraka/node_modules/haraka-plugin-redis/index.js:194:14)
2024-04-20 10:57:47.898532500  [CRIT] [-] [core]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-04-20 10:57:47.898930500  [NOTICE] [-] [core] Shutting down
@analogic
Copy link
Collaborator Author

Hmm there is loginfo too right after connection. I think must have something terribly wrong with my stack, I am seeing errors on code which previously worked without major changes :)

@ravivgolov
Copy link

I am new, what is OutboundTLS?

@msimerson
Copy link
Member

Restore line 20 (from my open PR) in that file and I think you'll find it better. Also, share a couple log entries, I think they'll be sub-par format, so I might add loggers to OBTLS differently.

@msimerson
Copy link
Member

should be fixed in #3322

@analogic
Copy link
Collaborator Author

Thanks! logger.add_log_methods(this) work, PR will test later

2024-04-22 08:03:32.069514500 [INFO] [-] [core] connected to redis://127.0.0.1:6379

loginfo at https://github.com/haraka/haraka-plugin-redis/blob/ca6c766ea19339748b59991d89c882f5c7fe1b2d/index.js#L187 not available and therefore throwing exception catched later and printed with again not available logerror...

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

No branches or pull requests

3 participants