Skip to content

Commit feec761

Browse files
committed
fix: show config packages on startup
In addition to the path of config file, show the packages property, too.
1 parent c305295 commit feec761

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

_appmap/configuration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import ast
66
import importlib.metadata
77
import inspect
8+
import json
89
import os
910
import sys
1011
from os.path import realpath
@@ -144,6 +145,9 @@ def __init__(self):
144145
if "labels" in self._config:
145146
self.labels.append(self._config["labels"])
146147

148+
def __repr__(self):
149+
return json.dumps(self._config["packages"])
150+
147151
@property
148152
def name(self):
149153
return self._config["name"]
@@ -483,6 +487,7 @@ def initialize():
483487
# pylint: disable=protected-access
484488
c._load_config(show_warnings=True)
485489
logger.info("file: %s", c._file if c.file_present else "[no appmap.yml]")
490+
logger.info("config: %r", c)
486491
logger.debug("package_functions: %s", c.package_functions)
487492
logger.info("env: %r", os.environ)
488493
os.environ["_APPMAP_MESSAGES_SHOWN"] = "true"

0 commit comments

Comments
 (0)