Comments (5)
Ah no, I spoke too soon, it's a pretty easy fix after all.
from ld-relay.
In the upcoming release, we're planning to standardize the format as follows:
2020/01/06 18:25:59.404164 [env: my-environment-name] DEBUG: Received all feature flags
Messages that aren't tied to a specific environment would omit the [env: xxx]
field - although for simplicity in parsing I guess we could instead substitute something like [main]
. (Edited to add: the latter.)
from ld-relay.
Good point. This wasn't an intentional difference; shouldn't be hard to fix.
from ld-relay.
Oh... I see why it's that way. Ugh. Go's built-in Logger does not have any notion of "levels", and there is no way to make it prepend a string like "DEBUG:" to every log message that you write; all you can do is prepend a string to the whole line. That's not a desirable format— it would be much better to put the timestamp first— but as long as the loggers are implemented as a log.Logger
, we have no other way to make "DEBUG:", "ERROR:", etc. show up unless we hard-code them into every log string. And because Relay is usable as a library inside an application, and those logger instances are exported global variables, changing their type would be a breaking change. So... we may have to just hard-code those prefixes for now. It's clunky but I think it's worth it to make the timestamp be at the beginning of the line.
from ld-relay.
The 5.9.2 release includes this change.
from ld-relay.
Related Issues (20)
- Big segments, seperate DynamoDB tables per environement and autoconfiguration HOT 3
- vulnerability warning CVE-2022-37434
- vulnerability warning CVE-2020-8911 and others related to AWS SDK HOT 3
- Multiple vulnerabilities found in Docker image v6.7.13 HOT 5
- LD relay fails to reconnect to Redis after Redis restarts HOT 5
- Missing Prometheus metrics on LD relay 7.0.0 HOT 7
- vulnerability warning CVE-2022-41717 HOT 2
- Give us your feedback: Distroless docker image instead of Alpine HOT 1
- ld-relay docs say it can load config from environment AND config file, but it doesn't work HOT 2
- OpenSSL vulnerabilities detected in ld-relay:7.2.2 HOT 3
- Please address CVE-2023-2650 in the Docker image HOT 1
- golang and OpenSSL vulnerabilities detected in ld-relay:7.2.5 and ld-relay:7.3.1 HOT 3
- Publish Relay Proxy Docker Images to Amazon ECR Public Gallery HOT 9
- disableInternalUsageMetrics has been removed in relay v8 HOT 4
- Docs for V6 to V7 Server SDK are not helpful HOT 3
- OpenSSL vulnerabilities detected in ld-relay:7.4.1 HOT 3
- Go grpc vulnerabilities detected in ld-relay:8.2.0 HOT 2
- Atomic update to an offline configuration archive causes subsequent changes to be missed HOT 2
- It's time to update supported Go versions
- It's time to update supported Go versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ld-relay.