[keycloak-dev] testsuite still eats server-side logs in IDE
Bill Burke
bburke at redhat.com
Tue Apr 4 09:00:54 EDT 2017
The error that was eaten was something thrown from Undertow before it
even got to org.keycloak code.
On 4/4/17 8:00 AM, Stian Thorgersen wrote:
> This will help with those cases where you currently see a whole bunch
> of exceptions in the logs where they are actually expected
>
> On 4 April 2017 at 13:44, Marek Posolda <mposolda at redhat.com
> <mailto:mposolda at redhat.com>> wrote:
>
> +1
>
> It will be good if it logs the details for whole class in case
> that some test failed. As there could be dependencies between the
> order in which test method was executed etc.
>
> Also we can have an appender, which will log everything to the
> file. So if you still want to see full log and all the details,
> you can look to the file.
>
> Marek
>
>
>
> On 04/04/17 12:26, Stian Thorgersen wrote:
>> Here's a cray thought. Could we somehow hide all log output for a
>> test that passes and only show log output for failed tests? Maybe
>> it could be done with a custom log appender that buffers log
>> output, then the unit tests could call clear or dump depening on
>> success/failure.
>>
>> On 4 April 2017 at 12:24, Stian Thorgersen <sthorger at redhat.com
>> <mailto:sthorger at redhat.com>> wrote:
>>
>> I think this probably still needs some work. When running
>> from IDE we don't need the TestEventsLogger at all as the IDE
>> (at least IntelliJ) deals with that in a much nicer way.
>>
>> When running on Travis there's probably still an issue with
>> to much log being generated. I can try this again, but last
>> time I tried with -Pauth-server-wildfly the sysoutput file
>> became to big (4mb+).
>>
>> On 4 April 2017 at 10:21, Marek Posolda <mposolda at redhat.com
>> <mailto:mposolda at redhat.com>> wrote:
>>
>> I found some workaround to fix that. PR sent here:
>> https://github.com/keycloak/keycloak/pull/4002
>> <https://github.com/keycloak/keycloak/pull/4002>
>>
>> Now the default logging level for "org.keycloak" is INFO
>> when you run from IDE, but disabled when you run with
>> maven-surefire-plugin. In both cases, system property
>> "keycloak.logging.level" can be used to override the default.
>>
>> Marek
>>
>>
>> On 04/04/17 09:24, Stian Thorgersen wrote:
>>> Pavel - can you comment on this please? If I remember
>>> correctly it wasn't working initially, then Marek fixed
>>> it, but now it's broken again.
>>>
>>> On 3 April 2017 at 22:06, Marek Posolda
>>> <mposolda at redhat.com <mailto:mposolda at redhat.com>> wrote:
>>>
>>> Doesn't work here too. But it worked a month ago or
>>> so. Not sure what changed in the meantime... Created
>>> https://issues.jboss.org/browse/KEYCLOAK-4705
>>> <https://issues.jboss.org/browse/KEYCLOAK-4705> .
>>> Will try to take a look.
>>>
>>> Marek
>>>
>>> On 03/04/17 16:22, Bill Burke wrote:
>>>
>>> And that helps how? Running in IDE should not
>>> suppress any error
>>> messages. The error message was actually an
>>> internal Undertow one
>>> complaining that async HTTP was unsupported. I
>>> did look in the log4j
>>> properties. The default logging level looks
>>> like it is INFO.
>>>
>>>
>>> On 4/3/17 9:33 AM, Stian Thorgersen wrote:
>>>
>>> https://github.com/keycloak/keycloak/blob/master/testsuite/integration-arquillian/HOW-TO-RUN.md#testsuite-logging
>>> <https://github.com/keycloak/keycloak/blob/master/testsuite/integration-arquillian/HOW-TO-RUN.md#testsuite-logging>
>>>
>>> On 1 April 2017 at 21:22, Bill Burke
>>> <bburke at redhat.com <mailto:bburke at redhat.com>
>>> <mailto:bburke at redhat.com
>>> <mailto:bburke at redhat.com>>> wrote:
>>>
>>> When running arquillian tests in the
>>> IDE, I'm still seeing no log
>>> messages from the server. I had to set
>>> a breakpoint in JAX-RS code to
>>> find out a Javascript parsing error.
>>>
>>> _______________________________________________
>>> keycloak-dev mailing list
>>> keycloak-dev at lists.jboss.org
>>> <mailto:keycloak-dev at lists.jboss.org>
>>> <mailto:keycloak-dev at lists.jboss.org
>>> <mailto:keycloak-dev at lists.jboss.org>>
>>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>> <https://lists.jboss.org/mailman/listinfo/keycloak-dev>
>>>
>>> <https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>> <https://lists.jboss.org/mailman/listinfo/keycloak-dev>>
>>>
>>>
>>> _______________________________________________
>>> keycloak-dev mailing list
>>> keycloak-dev at lists.jboss.org
>>> <mailto:keycloak-dev at lists.jboss.org>
>>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>> <https://lists.jboss.org/mailman/listinfo/keycloak-dev>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
More information about the keycloak-dev
mailing list