diff --git a/src/location.py b/src/location.py
index 685c5b1b3e5f58818cd3124f38c8e79a2f464aa4..69a8b163d5d7cda4475321241476efaeabf727b4 100644
--- a/src/location.py
+++ b/src/location.py
@@ -256,9 +256,9 @@ if __name__ == '__main__':
     arguments = parser.parse_args()
 
     if arguments.verbose:
-        basicConfig(filename=arguments.verbose, level=DEBUG)
+        basicConfig(filename=arguments.log, level=DEBUG)
     else:
-        basicConfig(filename=arguments.verbose, level=INFO)
+        basicConfig(filename=arguments.log, level=INFO)
 
     cal_location(arguments)