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
When running Typesense 0.21 all console output is directed to stderr. This makes it difficult in a Kubernetes environment to distinguish errors from logging event.
It seems the GLOG library used for logging doesn't support sending to anything but stderr.
Steps to reproduce
docker run -p 8108:8108 -v/tmp/data:/data typesense/typesense:0.21.0 --data-dir /data --api-key=Hu52dwsas2AdxdE 2> stderr.log This will output stderr events to a file. As you can see everything is stderr.
Expected Behavior
Log Info/Warning to stdout and errors to stderr.
Actual Behavior
Everything is logged to stderr.
Metadata
Typsense Version: 0.21
The text was updated successfully, but these errors were encountered:
@snorrid Thanks for reporting this issue. I looked into this in detail. Unfortunately, GLOG supports log level separation only for files. For console logging, it gives only two options:
a) Send only ERROR logs to stderr (default)
b) Send both INFO and ERROR logs to stderr (which is what we have configured Typesense with)
For now, you might have to rely on a log aggregator for alerting that can differentiate between INFO and ERROR logs based on a regexp parsing configuration.
Note to self: FLAGS_logtostderr is now available on Glog (PR) so this issue is now fixable. Will require rebuilding Typesense and its dependencies with a version of Glog that contains that patch.
Description
When running Typesense 0.21 all console output is directed to stderr. This makes it difficult in a Kubernetes environment to distinguish errors from logging event.
It seems the GLOG library used for logging doesn't support sending to anything but stderr.
Steps to reproduce
docker run -p 8108:8108 -v/tmp/data:/data typesense/typesense:0.21.0 --data-dir /data --api-key=Hu52dwsas2AdxdE 2> stderr.log
This will output stderr events to a file. As you can see everything is stderr.Expected Behavior
Log Info/Warning to stdout and errors to stderr.
Actual Behavior
Everything is logged to stderr.
Metadata
Typsense Version: 0.21
The text was updated successfully, but these errors were encountered: