Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Proposed functionality patch: make log less verbose by stripping base path from traceback #1880

Closed
nvaccessAuto opened this Issue Nov 1, 2011 · 2 comments

Comments

Projects
None yet
1 participant

Reported by lpintes on 2011-11-01 20:27
When I am reading the log, I am always stripping base path from log messages to decrease redundancy. I am doing this by using find/replace in text editor. It is a bit annoying to do this every time, so here is little patch to do it automatically during logging.

Attachment lessVerboseLog.patch added by lpintes on 2011-11-01 20:33
Description:

Comment 1 by jteh on 2011-11-03 04:38
Thanks for the patch. I reworked it and committed in a72d941. Changes:

  • Base path is now stripped from stack_info tracebacks as well as exceptions.
  • The search string is a bit more specific to avoid accidentally stripping the base path from other places; e.g. raising an exception which includes the base path. It's technically still not 100% safe, but this shouldn't ever be an issue in reality.
    Changes:
    Milestone changed from None to 2012.1
    State: closed

@nvaccessAuto nvaccessAuto added this to the 2012.1 milestone Nov 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment