summaryrefslogtreecommitdiffstats
path: root/utility
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2008-10-27 02:13:07 +0000
committerGravatar Edward Rudd 2008-10-27 02:13:07 +0000
commit76272812c00f6116bc7bf42eaed31b6c4d743497 (patch)
tree778b9e09d335c6c55172ebb62c5557f72b6b4533 /utility
parentf9f8794a67561c243823cac0a45d8906e90ee7bb (diff)
only find files IF no file was passed on the command line
Diffstat (limited to 'utility')
-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");