summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBinh Le <lebinh.it@gmail.com>2014-04-02 14:01:53 +0700
committerBinh Le <lebinh.it@gmail.com>2014-04-02 14:01:53 +0700
commit7b154b1af413d07a06b473de296fa91af6cdf37c (patch)
tree91af8f0ba72977aecaa39dcf798f80341a929589
parenta01e7e05ab755a08b8b2d31d0abb1c11ab2a04f0 (diff)
Fix checking file exist even for 'stdin' log.
-rwxr-xr-xngxtop/ngxtop.py2
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']: