-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-log-file option not respecting log-level #4778
Comments
Seeing this as well on a couple of agents after moving to v1.2.3 in order to log to a file rather than syslog. |
I'm unable to reproduce this supplying the argument via files or the CLI. As a result I'm going to close this but please feel free to comment back if you can consistently reproduce. |
Hi, we are experiencing the same issue. |
I can repro. Log-level set in config file, log-file specified on command line (since it apparently doesn't have a config file equivalent) |
also repro-able if log-level is specified on command line like |
@trondhindenes Can you post the complete commands you're running and log output, and any configuration? |
Snippet from log:
|
(tried log-level on the cmd line and log_level in the config, but none of them seem to have any effect) |
@trondhindenes Can you post the log output in question as well? |
sure, updated. Interestingly, the journalctl output from Consul seems to respect log-level, but the logfile seems to not respect it. |
@trondhindenes Ah nice catch, that is the bug. stdout is behaving as expected but the log-file option added in #4581 is not. |
Renamed the issue for clarity. Thanks again @trondhindenes! |
awesome! |
Hi, we are experiencing the same issue. Part of Log file: |
@pearkes Is there any estimate on when this bug will be fixed? I am working on a project that needs the amount of log entries to be reduced by applying the |
@pearkes when should this be fixed? |
I'd like to know that as well. |
We haven't scheduled this work, I just tagged it to increase visibility and put it on our backlog to fix. |
Closing this issue since it was fixed in #5510. Will be in the upcoming 1.5.0 release. |
After I started up Consul server (v1.2.3) with option log-level="INFO" or "WARN", I can still see many debug level logs outputted. Can anyone help to check it out?
This is my configs.
bash-4.2$ cat consul-config.json
{
"datacenter": "ssc",
"data_dir": "/opt/data/ssc/consul",
"log_level": "WARN",
"disable_host_node_id" : true,
"server": true,
"client_addr": "0.0.0.0",
"ui": true,
"bootstrap_expect": 3
}
And this is the logs.
2018/10/10 21:53:54 [WARN] agent: Node name "a.b.c" will not be discoverable via DNS due to invalid characters. Valid characters include all alpha-numerics and dashes.
2018/10/10 21:53:54 [INFO] raft: Initial configuration (index=2144): [{Suffrage:Voter ID:5d21d4a7-9604-ee22-4aea-7b97418349b3 Address:10.113.6.144:8300} {Suffrage:Voter ID:15b662fb-2d1e-1efa-60fa-43af9773186
d Address:10.113.7.17:8300} {Suffrage:Voter ID:f7c36e86-9e84-8117-8462-0a7356475bf5 Address:10.113.6.108:8300}]
2018/10/10 21:53:54 [INFO] raft: Node at 10.113.6.108:8300 [Follower] entering Follower state (Leader: "")
2018/10/10 21:53:54 [INFO] serf: EventMemberJoin: a.b.c.ssc 10.113.6.108
2018/10/10 21:53:54 [INFO] serf: Attempting re-join to previously known node: a.b.dssc: 10.113.7.17:8302
2018/10/10 21:53:54 [DEBUG] memberlist: Initiating push/pull sync with: 10.113.7.17:8302
2018/10/10 21:53:54 [INFO] serf: EventMemberJoin: a.b.c 10.113.6.108
2018/10/10 21:53:54 [INFO] serf: Attempting re-join to previously known node: a.b.d.ssc: 10.113.6.144:8301
2018/10/10 21:53:54 [INFO] consul: Adding LAN server a.b.c (Addr: tcp/10.113.6.108:8300) (DC: ssc)
2018/10/10 21:53:54 [INFO] consul: Handled member-join event for server "a.b.c.ssc" in area "wan"
2018/10/10 21:53:54 [INFO] consul: Raft data found, disabling bootstrap mode
2018/10/10 21:53:54 [DEBUG] agent/proxy: managed Connect proxy manager started
2018/10/10 21:53:54 [DEBUG] memberlist: Initiating push/pull sync with: 10.113.6.144:8301
2018/10/10 21:54:09 [DEBUG] agent: Node info in sync
2018/10/10 21:54:11 [DEBUG] memberlist: Stream connection from=10.113.7.17:58602
2018/10/10 21:54:26 [DEBUG] memberlist: Stream connection from=10.113.6.144:33598
2018/10/10 21:54:40 [DEBUG] memberlist: Initiating push/pull sync with: 10.113.7.17:8301
2018/10/10 21:54:41 [DEBUG] memberlist: Stream connection from=10.113.7.17:58606
2018/10/10 21:54:56 [DEBUG] memberlist: Stream connection from=10.113.6.144:33602
2018/10/10 21:55:04 [DEBUG] memberlist: Stream connection from=10.113.6.144:34674
2018/10/10 21:55:09 [DEBUG] memberlist: Stream connection from=10.113.7.17:53974
2018/10/10 21:55:10 [DEBUG] memberlist: Initiating push/pull sync with: 10.113.6.144:8301
2018/10/10 21:55:16 [DEBUG] memberlist: Initiating push/pull sync with: 10.113.7.17:8302
2018/10/10 21:55:29 [DEBUG] agent: Skipping remote check "serfHealth" since it is managed automatically
2018/10/10 21:55:29 [DEBUG] agent: Node info in sync
2018/10/10 21:55:40 [DEBUG] memberlist: Initiating push/pull sync with: 10.113.6.144:8301
2018/10/10 21:55:54 [DEBUG] manager: Rebalanced 3 servers, next active server is a.b.d.ssc (Addr: tcp/10.113.6.144:8300)
Output from 'consul info'
The text was updated successfully, but these errors were encountered: