Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F fsleyes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FSL
  • fsleyes
  • fsleyes
  • Issues
  • #109

Closed
Open
Created Mar 14, 2018 by Paul McCarthy@paulmc🚵Owner

Change all logging calls so they don't format strings

Currently all logging calls in FSLeyes (and associated projects) call .format on the log string, e.g.:

log.debug('format this string: {} {} {}'.format('a', 'b', 'c'))

But the logging module can do string formatting for us:

log.debug('format this string: {} {} {}', 'a', 'b', 'c')

If you switch over to this convention, it will mean that there does not have to be a (large) performance penalty to leaving log calls in the code.

Assignee
Assign to
Time tracking