diff options
author | Binh Le <lebinh.it@gmail.com> | 2014-04-02 14:01:53 +0700 |
---|---|---|
committer | Binh Le <lebinh.it@gmail.com> | 2014-04-02 14:01:53 +0700 |
commit | 7b154b1af413d07a06b473de296fa91af6cdf37c (patch) | |
tree | 91af8f0ba72977aecaa39dcf798f80341a929589 | |
parent | a01e7e05ab755a08b8b2d31d0abb1c11ab2a04f0 (diff) |
Fix checking file exist even for 'stdin' log.
-rwxr-xr-x | ngxtop/ngxtop.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ngxtop/ngxtop.py b/ngxtop/ngxtop.py index 6e1bdfe..428af12 100755 --- a/ngxtop/ngxtop.py +++ b/ngxtop/ngxtop.py @@ -347,7 +347,7 @@ def process(arguments): logging.info('access_log: %s', access_log) logging.info('log_format: %s', log_format) - if not os.path.exists(access_log): + if access_log != 'stdin' and not os.path.exists(access_log): error_exit('access log file "%s" does not exist' % access_log) if arguments['info']: |