# \-connection-log instruction not working

**URL:** <https://bnd.discourse.group/t/connection-log-instruction-not-working/240>\
**Category:** DEVELOPMENT\
**Created:** [May 9, 2022, 6:19am UTC](https://bnd.discourse.group/t/connection-log-instruction-not-working/240 "2022-05-09T06:19:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgerlich](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/mgerlich/32/76_2.png) [@mgerlich](https://bnd.discourse.group/u/mgerlich)\
**Post date:** [May 9, 2022, 6:19am UTC](https://bnd.discourse.group/t/connection-log-instruction-not-working/240/1 "2022-05-09T06:19:54Z")

</div>

Hi there,

I’m currently working with bndtools release version 6.1.0 and I wanted to verify locally that the settings in my `connection-settings.xml` are properly working. As mentioned in [bndtools documentation](https://bnd.bndtools.org/instructions/connection-settings.html), there should be the `-connection-log` instruction to allow logging of those settings.  
Apparently, I couldn’t get it to work and having a look at the sources, it seems that I cannot find any trace of this instruction in the code.

So I was wondering, was/is/will this instruction/feature working once because it’d definitily help me debug builds.

All the best,  
Michael

---

<div class="post-metadata">

**Author:** ![pkriens](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/pkriens/32/3_2.png) [@pkriens](https://bnd.discourse.group/u/pkriens)\
**Post date:** [May 9, 2022, 12:57pm UTC](https://bnd.discourse.group/t/connection-log-instruction-not-working/240/2 "2022-05-09T12:57:43Z")

</div>

You are right, the code is in there but it is not activated by setting the property.

A good way to debug connection settings is the `bnd com` command.

```auto
Available sub-commands: 
  clear - Clear the cached file that is
                                        associated with the givenURI 
  info - Show the information used by the
                                        Http Client to get aremote file 
  settings - Show the bnd -connection-settings 

```

---

<div class="post-metadata">

**Author:** ![pkriens](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/pkriens/32/3_2.png) [@pkriens](https://bnd.discourse.group/u/pkriens)\
**Post date:** [May 9, 2022, 1:11pm UTC](https://bnd.discourse.group/t/connection-log-instruction-not-working/240/3 "2022-05-09T13:11:19Z")

</div>

Create a PR to implement this: [[httpclient] Implement log as specified in doc by pkriens · Pull Request #5242 · bndtools/bnd · GitHub](https://github.com/bndtools/bnd/pull/5242)

---

<div class="post-metadata">

**Author:** ![mgerlich](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/mgerlich/32/76_2.png) [@mgerlich](https://bnd.discourse.group/u/mgerlich)\
**Post date:** [May 10, 2022, 3:34pm UTC](https://bnd.discourse.group/t/connection-log-instruction-not-working/240/4 "2022-05-10T15:34:41Z")

</div>

Ah great, thanks for the PR and also the pointer to the bnd program/jar. That helps a lot.
