You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by Alexander Broekhuis <a....@gmail.com> on 2014/11/18 20:27:13 UTC
Re: [jira] [Commented] (CELIX-184) Suppress warning for ENDPOINT_DESCRIPTOR_READER
Hi,
Since logging is not yet in place for several bundles, I would say for now
to simply drop this message after printing it once.
I'm also fine with adding the log service as a dependency to these bundles.
Wdyt?
Regardless of the setup, I can relate to this being annoying with only a
couple of endpoints, since it makes it difficult to use the shell. Even
with one endpoint this already gives some annoying behaviour.
Op Tue Nov 18 2014 at 2:14:34 PM schreef Bjoern Petri (JIRA) <
jira@apache.org>:
>
> [ https://issues.apache.org/jira/browse/CELIX-184?page=
> com.atlassian.jira.plugin.system.issuetabpanels:comment-
> tabpanel&focusedCommentId=14216627#comment-14216627 ]
>
> Bjoern Petri commented on CELIX-184:
> ------------------------------------
>
> Unfortuntaly there is currenlty no way to easy supress log messages. It
> might be an idea to supress the message after it has been printed once, but
> this should imho be a gernal functionality implemented within the
> celix_logservice.
>
> Being curious, I wonder about your setup - with the default setup you
> should see the message only once every ten seconds per endpoint. So I
> assume you're using a lot of endpoints?
>
> > Suppress warning for ENDPOINT_DESCRIPTOR_READER
> > -----------------------------------------------
> >
> > Key: CELIX-184
> > URL: https://issues.apache.org/jira/browse/CELIX-184
> > Project: Celix
> > Issue Type: Wish
> > Reporter: Mark Butsch
> > Priority: Minor
> >
> > the warning message "WARNING: ENDPOINT_DESCRIPTOR_READER: Only
> single-valued string supported for service.id" is output a lot in the
> shell. This causes any output you wanted to see to scroll away. It would be
> nice if there was a way to stop that.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>
Re: [jira] [Commented] (CELIX-184) Suppress warning for ENDPOINT_DESCRIPTOR_READER
Posted by Bjoern Petri <bj...@sundevil.de>.
On 2014-11-19 13:06, Alexander Broekhuis wrote:
> Op Wed Nov 19 2014 at 1:36:25 AM schreef Björn Petri <
> bjoern.petri@sundevil.de>:
>
>> Hi,
>>
>> I am not sure whether we should add dependencies where actually not
>> needed.
>>
>
> I agree.
>
>
>> But we could at least change the code to use the log_service if
>> available.
>>
>
> I agree as well. In your log_helper you print the messages to standard
> out
> if there is no logger available. I think this should be made optional.
>
> Typically when having a dependency to a log_service in OSGi, when it is
> not
> there, logging is just ignored. I don't mind the helper printing it,
> but as
> this issue shows, in some cases it is just an annoyance when it is
> done.
Good point - I will just add a small property which can be set to enable
stdout-printing as fallback.
Re: [jira] [Commented] (CELIX-184) Suppress warning for ENDPOINT_DESCRIPTOR_READER
Posted by Alexander Broekhuis <a....@gmail.com>.
Op Wed Nov 19 2014 at 1:36:25 AM schreef Björn Petri <
bjoern.petri@sundevil.de>:
> Hi,
>
> I am not sure whether we should add dependencies where actually not needed.
>
I agree.
> But we could at least change the code to use the log_service if available.
>
I agree as well. In your log_helper you print the messages to standard out
if there is no logger available. I think this should be made optional.
Typically when having a dependency to a log_service in OSGi, when it is not
there, logging is just ignored. I don't mind the helper printing it, but as
this issue shows, in some cases it is just an annoyance when it is done.
Re: [jira] [Commented] (CELIX-184) Suppress warning for ENDPOINT_DESCRIPTOR_READER
Posted by Björn Petri <bj...@sundevil.de>.
Hi,
I am not sure whether we should add dependencies where actually not needed.
But we could at least change the code to use the log_service if available.
Regards,
Björn
Sent with AquaMail for Android
http://www.aqua-mail.com
On November 18, 2014 8:27:44 PM Alexander Broekhuis <a....@gmail.com>
wrote:
> Hi,
>
> Since logging is not yet in place for several bundles, I would say for now
> to simply drop this message after printing it once.
>
> I'm also fine with adding the log service as a dependency to these bundles.
> Wdyt?
>
> Regardless of the setup, I can relate to this being annoying with only a
> couple of endpoints, since it makes it difficult to use the shell. Even
> with one endpoint this already gives some annoying behaviour.
>
> Op Tue Nov 18 2014 at 2:14:34 PM schreef Bjoern Petri (JIRA) <
> jira@apache.org>:
>
> >
> > [ https://issues.apache.org/jira/browse/CELIX-184?page=
> > com.atlassian.jira.plugin.system.issuetabpanels:comment-
> > tabpanel&focusedCommentId=14216627#comment-14216627 ]
> >
> > Bjoern Petri commented on CELIX-184:
> > ------------------------------------
> >
> > Unfortuntaly there is currenlty no way to easy supress log messages. It
> > might be an idea to supress the message after it has been printed once, but
> > this should imho be a gernal functionality implemented within the
> > celix_logservice.
> >
> > Being curious, I wonder about your setup - with the default setup you
> > should see the message only once every ten seconds per endpoint. So I
> > assume you're using a lot of endpoints?
> >
> > > Suppress warning for ENDPOINT_DESCRIPTOR_READER
> > > -----------------------------------------------
> > >
> > > Key: CELIX-184
> > > URL: https://issues.apache.org/jira/browse/CELIX-184
> > > Project: Celix
> > > Issue Type: Wish
> > > Reporter: Mark Butsch
> > > Priority: Minor
> > >
> > > the warning message "WARNING: ENDPOINT_DESCRIPTOR_READER: Only
> > single-valued string supported for service.id" is output a lot in the
> > shell. This causes any output you wanted to see to scroll away. It would be
> > nice if there was a way to stop that.
> >
> >
> >
> > --
> > This message was sent by Atlassian JIRA
> > (v6.3.4#6332)
> >