Skip to content

Commit e5af797

Browse files
author
Vladimir Kotal
committed
use __name__ to get logger
1 parent 846db8c commit e5af797

File tree

1 file changed

+1
-1
lines changed
  • opengrok-tools/src/main/python/opengrok_tools

1 file changed

+1
-1
lines changed

opengrok-tools/src/main/python/opengrok_tools/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def main():
9494
loglevel = logging.INFO
9595
if args.debug:
9696
loglevel = logging.DEBUG
97-
logger = get_console_logger(os.path.basename(sys.argv[0]), loglevel)
97+
logger = get_console_logger(__name__, loglevel)
9898

9999
uri = args.uri
100100
if not is_web_uri(uri):

0 commit comments

Comments
 (0)