parent
5192d90576
commit
f1f4addfe3
|
@ -10,7 +10,7 @@ from misp_stix_converter.converters import lint_roller
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
# Set up logger
|
# Set up logger
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO, format="'%(asctime)s - %(name)s - %(levelname)s - %(message)s')")
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Try to load in config
|
# Try to load in config
|
||||||
|
|
|
@ -17,7 +17,7 @@ args = parser.parse_args()
|
||||||
|
|
||||||
# Set up a logger for logging's sake
|
# Set up a logger for logging's sake
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
logging.basicConfig(filename="poll.log")
|
logging.basicConfig(filename="poll.log", format="'%(asctime)s - %(name)s - %(levelname)s - %(message)s')")
|
||||||
log.setLevel(logging.DEBUG if args.verbose else logging.INFO)
|
log.setLevel(logging.DEBUG if args.verbose else logging.INFO)
|
||||||
|
|
||||||
# If we want, print the output to stdout
|
# If we want, print the output to stdout
|
||||||
|
|
Loading…
Reference in New Issue