Skip to content

Commit a5e64e5

Browse files
committed
Moved logging setup further up in main
1 parent 7adcf64 commit a5e64e5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

soularr.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,7 @@ def main():
13251325

13261326
if os.path.exists(config_file_path):
13271327
config.read(config_file_path)
1328+
setup_logging(config, args.var_dir)
13281329
else:
13291330
if is_docker():
13301331
logger.error(
@@ -1394,8 +1395,6 @@ def main():
13941395
else:
13951396
allowed_filetypes = [raw_filetypes]
13961397

1397-
setup_logging(config, args.var_dir)
1398-
13991398
# Init directory cache. The wide search returns all the data we need. This prevents us from hammering the users on the Soulseek network
14001399
search_cache = {}
14011400
folder_cache = {}

0 commit comments

Comments
 (0)