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

fix(OutputWatcher): use formatted string in log message #7493

Merged
merged 1 commit into from
May 28, 2024

Commits on May 28, 2024

  1. fix(OutputWatcher): use formatted string in log message

    Sometimes line for output  could contain '%s' or '0.0%' and this break
    OutputWatcher log function with error:
    ```
    18:42:47      msg = msg % self.args
    18:42:47  ValueError: incomplete format
    
    File "/home/ubuntu/scylla-cluster-tests/sdcm/remote/libssh2_client/__init__.py",
        line 449, in _process_output
          watcher.submit_line(data)
    File "/home/ubuntu/scylla-cluster-tests/sdcm/remote/base.py",
        line 231, in submit_line
          self.log.debug("<%s>: " + line.rstrip('\n'), self.hostname)
    Message: '<%s>: Percent Repaired       : 0.0%'
    Arguments: ('10.4.0.228',)
    ```
    
    Change format for log message info
    
    self.log.debug("%s - %s', self.hostname, line)
    aleksbykov authored and soyacz committed May 28, 2024
    Configuration menu
    Copy the full SHA
    dfab900 View commit details
    Browse the repository at this point in the history