Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yunjunz
Copy link
Member

@yunjunz yunjunz commented Jun 10, 2023

Description of proposed changes

#168

Reminders

  • Pass Pre-commit check (green)
  • Pass Codacy code review (green)
  • Pass Circle CI test (green)
  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.
  • If adding new functionality, add a detailed description to the documentation and/or an example.

+ __main__: add `mintpy --loglevel / quiet / verbose / debug` options to control the logging level.

+ __main__: turn ON the traceback always in case of exceptions

+ __main__: add example usage for the mintpy CLI, consistent with other sub-commands
Copy link
Contributor

@scottstanie scottstanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


PROG = __package__
LOGFMT = '%(asctime)s %(levelname)-8s -- %(message)s'
DEFAULT_LOGLEVEL = "WARNING"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just noticing that this is the only place where python logging is used- do we think it's worth putting on the todo-list or roadmap to switch over some/all of the print calls to either logging.info or logging.warning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it definitely should be on the list. Please feel free to edit them on the wiki (https://github.com/insarlab/MintPy/wiki).

@yunjunz yunjunz merged commit 4272f82 into insarlab:main Jun 13, 2023
@yunjunz yunjunz deleted the cli_logging branch June 13, 2023 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants