diff --git a/src/location.py b/src/location.py index 864ca95948b97d960eabb13fa087b6636b8540e0..f617eb30e277149d461673314c0d1761f8413f7a 100644 --- a/src/location.py +++ b/src/location.py @@ -255,9 +255,9 @@ if __name__ == '__main__': parser.add_argument('-v', '--verbose', action='store_true', help='Verbose mode') arguments = parser.parse_args() if arguments.verbose: - basicConfig(filename=arguments.log, level=DEBUG) + basicConfig(filename=arguments.verbose, level=DEBUG) else: - basicConfig(filename=arguments.log, level=INFO) + basicConfig(filename=arguments.verbose, level=INFO) cal_location(arguments)