Skip to content

Commit 2947416

Browse files
committed
chore: Update logging configuration in struct_module
1 parent d40475d commit 2947416

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: struct
2-
31
services:
42
struct:
53
build: .

struct_module/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,11 @@ def main():
179179
if backup_path and not os.path.exists(backup_path):
180180
os.makedirs(backup_path)
181181

182-
logging.basicConfig(level=logging_level, filename=args.log_file)
182+
logging.basicConfig(
183+
level=logging_level,
184+
filename=args.log_file,
185+
format='%(levelname)s:struct:%(message)s',
186+
)
183187
logging.info(f"Starting to create project structure from {args.yaml_file} in {args.base_path}")
184188
logging.debug(f"YAML file path: {args.yaml_file}, Base path: {args.base_path}, Dry run: {args.dry_run}, Template vars: {template_vars}, Backup path: {backup_path}")
185189

0 commit comments

Comments
 (0)