Giter Site home page Giter Site logo

Comments (10)

martin-helmich avatar martin-helmich commented on August 11, 2024

The replicator supports a --log-level flag, which you should be able to use.

flag.StringVar(&f.LogLevel, "log-level", "info", "Log level (trace, debug, info, warn, error)")

The Helm chart has an args value which can be used to pass custom command-line arguments to the Deployment. Something like the following in your Helm values should do the trick:

args:
  - --log-level=warn

from kubernetes-replicator.

Mahesh-Gunda-Maersk avatar Mahesh-Gunda-Maersk commented on August 11, 2024

ok. was looking for something like this. will test this. Thank you.

from kubernetes-replicator.

Mahesh-Gunda-Maersk avatar Mahesh-Gunda-Maersk commented on August 11, 2024

Though I set log-level as warn, the log level is showing as an error .. is this expected? also when I set it to trace I see both debug, info & error logs. Please help us in understanding this behaviour

image
image

from kubernetes-replicator.

Mahesh-Gunda-Maersk avatar Mahesh-Gunda-Maersk commented on August 11, 2024

Hi, pls check if this behavior is fine. Thank you.

from kubernetes-replicator.

martin-helmich avatar martin-helmich commented on August 11, 2024

Though I set log-level as warn, the log level is showing as an error .. is this expected? also when I set it to trace I see both debug, info & error logs. Please help us in understanding this behaviour

I'm unsure if I understand the issue. Setting a log level customarily results in logging items with a severity equal to OR HIGHER than the configured log level, so a log level of warn will also log anything more severe than warnings (like errors and panics).

from kubernetes-replicator.

Mahesh-Gunda-Maersk avatar Mahesh-Gunda-Maersk commented on August 11, 2024

yes, we are on the same page. I have set log-level to the warning, but I see logging severity as error. just want to understand if this behavior is expected. anything we need to worry about?

from kubernetes-replicator.

martin-helmich avatar martin-helmich commented on August 11, 2024

Alright, then. 🙂 Regarding the actual logs with error severity: No, in normal operation, the replicator should not log any errors. What is the actual error that is being reported? I'm referring to the error field that is cropped in your screenshot.

from kubernetes-replicator.

Mahesh-Gunda-Maersk avatar Mahesh-Gunda-Maersk commented on August 11, 2024

below is the log snippet with log-level=warn

time="2023-04-19T06:13:15Z" level=error msg="could not replicate object to other namespaces" error="Replicated xyz-streams/local-abc-configuration to 7 out of 17 namespaces: 10 errors occurred:\n\t* Failed to replicate Secret xyzl-streams/local-abc-configuration -> kube-public: Failed to update secret kube-public/local-abc-configuration: secrets \"local-kafka-configuration\" already exists: Failed to update secret kube-public/local-abc-configuration: secrets \"local-kafka-configuration\" already exists\n\t ...........................

same error message for other secrets.

from kubernetes-replicator.

Mahesh-Gunda-Maersk avatar Mahesh-Gunda-Maersk commented on August 11, 2024

Hello @martin-helmich, were you able to reproduce this issue at your end? hope the error snippet shared helped.

from kubernetes-replicator.

Mahesh-Gunda-Maersk avatar Mahesh-Gunda-Maersk commented on August 11, 2024

sorry to bother you @martin-helmich. did you get a chance to look at the log snippet and do you have anything to comment or advise on this behavior?

from kubernetes-replicator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.