mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-09 15:45:12 +00:00
fix(log): correct log stream in setup (#11623)
This commit is contained in:
@@ -49,6 +49,7 @@ Instrumentation:
|
||||
# Streams enable logging for specific parts of the application.
|
||||
Streams: # ZITADEL_INSTRUMENTATION_LOG_STREAMS (comma separated list)
|
||||
- runtime # General runtime logs, such as startup and shutdown messages.
|
||||
- ready # Logs related to readiness and health checks. (zitadel ready command)
|
||||
- request # Logs for incoming API and HTTP requests.
|
||||
- event_handler # Logs for event handling in projections.
|
||||
- queue # Logs for the job queue processing.
|
||||
|
||||
@@ -49,6 +49,7 @@ Instrumentation:
|
||||
# Streams enable logging for specific parts of the application.
|
||||
Streams: # ZITADEL_INSTRUMENTATION_LOG_STREAMS (comma separated list)
|
||||
- runtime # General runtime logs, such as startup and shutdown messages.
|
||||
- ready # Logs related to readiness and health checks. (zitadel ready command)
|
||||
- request # Logs for incoming API and HTTP requests.
|
||||
- event_handler # Logs for event handling in projections.
|
||||
- queue # Logs for the job queue processing.
|
||||
|
||||
+1
-1
@@ -102,7 +102,7 @@ func NewConfig(cmd *cobra.Command, v *viper.Viper) (*Config, instrumentation.Shu
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("unable to start instrumentation: %w", err)
|
||||
}
|
||||
cmd.SetContext(logging.NewCtx(cmd.Context(), logging.StreamReady))
|
||||
cmd.SetContext(logging.NewCtx(cmd.Context(), logging.StreamRuntime))
|
||||
|
||||
err = config.Log.SetLogger()
|
||||
if err != nil {
|
||||
|
||||
@@ -49,6 +49,7 @@ Instrumentation:
|
||||
# Streams enable logging for specific parts of the application.
|
||||
Streams: # ZITADEL_INSTRUMENTATION_LOG_STREAMS (comma separated list)
|
||||
- runtime # General runtime logs, such as startup and shutdown messages.
|
||||
- ready # Logs related to readiness and health checks. (zitadel ready command)
|
||||
- request # Logs for incoming API and HTTP requests.
|
||||
- event_handler # Logs for event handling in projections.
|
||||
- queue # Logs for the job queue processing.
|
||||
|
||||
Reference in New Issue
Block a user