move string variable substutution in the logger

this way, log aggregators like sentry can tell that e.g.
    "Sleeping for 1.2 seconds, and "Sleeping for 1.3 seconds"
are the 'same' message