summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel A. Cortizo <macortizo@gmail.com>2014-03-31 20:31:47 +0200
committerMiguel A. Cortizo <macortizo@gmail.com>2014-03-31 20:31:47 +0200
commitc62e0e00435579141b9f8738f6db76b4accab928 (patch)
tree9da0789febf269da04e8e44eb17c2e8a044f84cd
parent247a8674fc0cb4dfd38ad4f076d05210d50f110b (diff)
Remove -s option, as it is not really needed
-rwxr-xr-xngxtop/ngxtop.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ngxtop/ngxtop.py b/ngxtop/ngxtop.py
index e8a2e69..3355891 100755
--- a/ngxtop/ngxtop.py
+++ b/ngxtop/ngxtop.py
@@ -29,7 +29,6 @@ Options:
-c <file>, --config <file> allow ngxtop to parse nginx config file for log format and location.
-i <filter-expression>, --filter <filter-expression> filter in, records satisfied given expression are processed.
-p <filter-expression>, --pre-filter <filter-expression> in-filter expression to check in pre-parsing phase.
- -s, --from-stdin read lines from stdin.
-b, --db-dump dump database to disk
Examples:
@@ -429,7 +428,7 @@ def process(arguments):
global processor
access_log = arguments['--access-log']
log_format = arguments['--log-format']
- if not access_log and (arguments['--from-stdin'] or not sys.stdin.isatty()):
+ if not access_log and not sys.stdin.isatty():
access_log = 'stdin'
else:
if access_log is None or log_format is None: