From 67bcc40ed2143ddb21b60bb11599b45a623b4f38 Mon Sep 17 00:00:00 2001
From: davidh-ssec <david.hoese@ssec.wisc.edu>
Date: Tue, 19 Dec 2017 10:03:54 -0600
Subject: [PATCH] Add debug flag to legacy db insert

---
 aosstower/level_00/legacy_db_insert.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/aosstower/level_00/legacy_db_insert.py b/aosstower/level_00/legacy_db_insert.py
index 06218ba..d4f37db 100644
--- a/aosstower/level_00/legacy_db_insert.py
+++ b/aosstower/level_00/legacy_db_insert.py
@@ -46,6 +46,8 @@ def main():
                         help='logging level',
                         choices=(['trace', 'debug', 'info', 'warn', 'error']))
     parser.add_argument('--logfn', help='Log to rotating file')
+    parser.add_argument('--debug', action='store_true',
+                        help='Don\'t submit records to the database, print them to stdout')
     parser.add_argument('-s', '--station', dest='station', default='RIG Tower',
                         help='Name of station to use to determine symbols')
     parser.add_argument('--ldmp', action='store_true',
-- 
GitLab