summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utility/shell.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utility/shell.c b/utility/shell.c
index 6f98055..2c19bb4 100644
--- a/utility/shell.c
+++ b/utility/shell.c
@@ -181,8 +181,10 @@ int main(int argc, const char *const argv[])
181 exit(1); 181 exit(1);
182 } 182 }
183 183
184 // Find files and parse 184 // Only Find files IF no filename was passed via the command line
185 parser_find_logs(cfg); 185 if (apr_is_empty_array(cfg->input_files)) {
186 parser_find_logs(cfg);
187 }
186 if (!cfg->dryrun) { 188 if (!cfg->dryrun) {
187 if ((rv = database_connect(cfg))) { 189 if ((rv = database_connect(cfg))) {
188 logging_log(cfg,LOGLEVEL_NOISE, "Error Connecting to Database"); 190 logging_log(cfg,LOGLEVEL_NOISE, "Error Connecting to Database");