Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.4 KB

README.rst

File metadata and controls

47 lines (29 loc) · 1.4 KB

cqh_tail

python tail

copy from activestate

Usage

watch dir

cqh_tail --pattern=~/**/*.log

watch dir and filter

cqh_tail --pattern=~/**/*.log --line-filter="\.general/"

problems

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 0: invalid start byte

Traceback (most recent call last):
File "/home/deploy/envs/default/bin/cqh_tail", line 8, in <module>
    sys.exit(main())
File "/home/deploy/envs/default/lib/python3.6/site-packages/cqh_tail/run.py", line 318, in main
    w = LogWatcher(pattern, tail_lines=count, callback=echo)
File "/home/deploy/envs/default/lib/python3.6/site-packages/cqh_tail/run.py", line 66, in __init__
    self._callback(file.name, lines)
File "/home/deploy/envs/default/lib/python3.6/site-packages/cqh_tail/run.py", line 313, in echo
    line = line.decode(convert_args.encode)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 0: invalid start byte