|
1 | 1 | #!/usr/bin/env python
|
2 | 2 | # -*- coding: utf-8 -*-
|
3 | 3 |
|
4 |
| -# Copyright (c) 2019 Martin Raspaud |
5 |
| - |
6 |
| -# Author(s): |
7 |
| - |
8 |
| -# Martin Raspaud <[email protected]> |
9 |
| - |
10 |
| -# This program is free software: you can redistribute it and/or modify |
11 |
| -# it under the terms of the GNU General Public License as published by |
12 |
| -# the Free Software Foundation, either version 3 of the License, or |
13 |
| -# (at your option) any later version. |
14 |
| - |
15 |
| -# This program is distributed in the hope that it will be useful, |
16 |
| -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 |
| -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 |
| -# GNU General Public License for more details. |
19 |
| - |
20 |
| -# You should have received a copy of the GNU General Public License |
21 |
| -# along with this program. If not, see <http://www.gnu.org/licenses/>. |
22 |
| - |
23 |
| -from posttroll.subscriber import Subscribe |
24 | 4 | import logging
|
25 |
| -from threading import Thread |
26 |
| -import yaml |
27 | 5 | import os
|
| 6 | +from threading import Thread |
28 | 7 |
|
| 8 | +import yaml |
| 9 | +from posttroll.subscriber import Subscribe |
29 | 10 | from pymongo import MongoClient
|
| 11 | + |
30 | 12 | logger = logging.getLogger(__name__)
|
31 | 13 |
|
32 | 14 |
|
@@ -118,8 +100,8 @@ def setup_logging(cmd_args):
|
118 | 100 | help="Log config file to use instead of the standard logging.")
|
119 | 101 | parser.add_argument("-v", "--verbose", dest="verbosity", action="count", default=0,
|
120 | 102 | help="Verbosity (between 1 and 2 occurrences with more leading to more "
|
121 |
| - "verbose logging). WARN=0, INFO=1, " |
122 |
| - "DEBUG=2. This is overridden by the log config file if specified.") |
| 103 | + "verbose logging). WARN=0, INFO=1, " |
| 104 | + "DEBUG=2. This is overridden by the log config file if specified.") |
123 | 105 | cmd_args = parser.parse_args()
|
124 | 106 |
|
125 | 107 | logger = logging.getLogger("mongo_recorder")
|
|
0 commit comments