I use the request library for the robot platform to upload files to the server. RequestsKeywords.py file has a line
logger.info('Post Request using : alias=%s, uri=%s, data=%s, headers=%s, files=%s, allow_redirects=%s '
% (alias, uri, dataStr, headers, files, redir))
This displays the contents of my download file inside the request in my log file. Now I can get rid of this log by changing the log level, but my goal is to see the log, but just truncate it to 80 characters, so I do not look at the lines of hexadecimal values. Any idea how this can be done?
source
share