Commit 7ff01c9b authored by The Heavy's avatar The Heavy 🚂
Browse files

Trim the url debug output in case it's too long.

parent c68ff2bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ if __name__ == '__main__':
                        )
                    )
                url = document[src_quote + 1:src_end_quote].strip()
                log.debug('url = {0}'.format(url))
                log.debug('url = {0}'.format(url[:args.maxlen]))
                if len(url) < 5:
                    log.warning('src attribute not long enough: {0}'.format(document[img_tag - 4:img_end_tag + 40]))
                    continue