You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.
In the dict self.moudles, all keys are lowercase,eg:
self.modules["stdout"] (key is "stdout")
self.modules["elasticsearch"] (key is "elasticsearch")
but at line 101 of file loghandler/app.py, the value of output["type"] maybe "STDOUT", "ElasticSearch"。Therefore, the logic underblow is wrong:
output = [
output for output in self.config["outputs"] if output["type"] == key
][0]
The correct logic should be:
output = [
output for output in self.config["outputs"] if output["type"].lower() == key
][0]
The text was updated successfully, but these errors were encountered:
In the dict self.moudles, all keys are lowercase,eg:
but at line 101 of file loghandler/app.py, the value of output["type"] maybe "STDOUT", "ElasticSearch"。Therefore, the logic underblow is wrong:
output = [
output for output in self.config["outputs"] if output["type"] == key
][0]
The correct logic should be:
output = [
output for output in self.config["outputs"] if output["type"].lower() == key
][0]
The text was updated successfully, but these errors were encountered: