Skip to content
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

mc: Global flags do not affect initialization messages #2089

Closed
dsix-work opened this issue Mar 24, 2017 · 3 comments
Closed

mc: Global flags do not affect initialization messages #2089

dsix-work opened this issue Mar 24, 2017 · 3 comments

Comments

@dsix-work
Copy link

Expected behaviour

Global flags --no-color, --quiet, --json, and --debug should be used for all output
All output should be de-colorized/supressed/json/verbose as specified

Actual behaviour

The initialization messages are output with color in plaintext regardless of the specified options

$ mc --no-color --quiet --json --config-folder=/tmp config host list
mc: Configuration written to ‘/tmp/config.json’. Please update your access credentials.
mc: Successfully created ‘/tmp/share’.
mc: Initialized share uploads ‘/tmp/share/uploads.json’ file.
mc: Initialized share downloads ‘/tmp/share/downloads.json’ file.
{"status":"success","alias":"gcs  ","URL":"https://storage.googleapis.com","accessKey":"YOUR-ACCESS-KEY-HERE","secretKey":"YOUR-SECRET-KEY-HERE","api":"S3v2"}

image

Steps to reproduce the behaviour

  1. Run mc with one of the above options with a config-folder that has not been previously used

mc version

Version: 2017-02-06T20:16:19Z
Release-tag: RELEASE.2017-02-06T20-16-19Z
Commit-id: 2c8115de4edc5612525488b1b3b804689d336d01

System information

Bash shell on Ubuntu

@vadmeste
Copy link
Member

Shall we hide initialization messages when json flag is activated ?

@harshavardhana
Copy link
Member

Shall we hide initialization messages when json flag is activated ?

Actually we shouldn't we should have a JSON equivalent.

@deekoder deekoder removed the bug label Apr 3, 2017
@harshavardhana harshavardhana added this to the Current milestone Apr 3, 2017
@harshavardhana harshavardhana changed the title Global flags do not affect initialization messages mc: Global flags do not affect initialization messages Apr 4, 2017
harshavardhana added a commit to harshavardhana/mc that referenced this issue Jun 21, 2017
harshavardhana added a commit to harshavardhana/mc that referenced this issue Jun 23, 2017
harshavardhana added a commit to harshavardhana/mc that referenced this issue Jun 23, 2017
harshavardhana added a commit to harshavardhana/mc that referenced this issue Jun 26, 2017
harshavardhana added a commit to harshavardhana/mc that referenced this issue Jun 26, 2017
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants