[ 
https://issues.apache.org/jira/browse/UNOMI-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17758467#comment-17758467
 ] 

Francois Gerthoffert commented on UNOMI-796:
--------------------------------------------

Verifications performed using:
{code:java}
 Apache Unomi 2.4.0.SNAPSHOT (2023-08-23 07:01:22+0000 // 1692774082990 // 
master // f03a8)
{code}

I modified an existing event by introducing a typo, and got the following 
response:

{code:java}
2023-08-24T09:18:34,225 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema https://unomi.apache.org/schemas/json/rest/requestIds/1-0-0
2023-08-24T09:18:34,252 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema https://unomi.apache.org/schemas/json/events/view/1-0-0
2023-08-24T09:18:34,254 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema https://unomi.apache.org/schemas/json/items/site/1-0-0
2023-08-24T09:18:34,257 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema https://unomi.apache.org/schemas/json/item/1-0-0
2023-08-24T09:18:34,262 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema https://unomi.apache.org/schemas/json/items/page/1-0-0
2023-08-24T09:18:34,263 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema 
https://unomi.apache.org/schemas/json/items/page/properties/1-0-0
2023-08-24T09:18:34,264 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema 
https://unomi.apache.org/schemas/json/items/page/properties/pageInfo/1-0-0
2023-08-24T09:18:34,273 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema 
https://unomi.apache.org/schemas/json/events/view/flattenProperties/1-0-0
2023-08-24T09:18:34,275 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema https://unomi.apache.org/schemas/json/event/1-0-0
2023-08-24T09:18:34,276 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Fetching schema https://unomi.apache.org/schemas/json/timestampeditem/1-0-0
2023-08-24T09:18:34,278 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  Schema 
validation found 1 errors while validating against schema: 
https://unomi.apache.org/schemas/json/events/view/1-0-0
2023-08-24T09:18:34,278 | DEBUG | qtp1942718114-130 | SchemaServiceImpl         
       | 222 - org.apache.unomi.json-schema-services - 2.4.0.SNAPSHOT |  
Validation error: There are unevaluated properties at the following paths 
$.source.itemTypes
{code}

Result is as expected, closing the ticket.

> Add log4j conf + env variable to set SchemaService log level
> ------------------------------------------------------------
>
>                 Key: UNOMI-796
>                 URL: https://issues.apache.org/jira/browse/UNOMI-796
>             Project: Apache Unomi
>          Issue Type: Bug
>            Reporter: Kevan Jahanshahi
>            Assignee: David Griffon
>            Priority: Major
>             Fix For: unomi-2.4.0
>
>
> The idea is to be able to configure easily the LOG LEVEL of package: 
> *org.apache.unomi.schema.impl*
>  
> In case people experience trouble with schema validation, it would be require 
> to switch this log to *DEBUG* to have real informations.
>  
> the file to modify is: 
> [https://github.com/apache/unomi/blob/master/package/src/main/resources/etc/org.ops4j.pax.logging.cfg]
>  
> Like for cxf example in same file:
> {code:java}
> log4j2.logger.cxfInterceptor.name = org.apache.cxf.interceptor
> log4j2.logger.cxfInterceptor.level = ${org.apache.unomi.logs.cxf.level:-WARN} 
> {code}
> associated to env (custom.system.properties): 
> {code:java}
> org.apache.unomi.logs.cxf.level=${env:UNOMI_LOGS_CXF_LEVEL:-WARN} {code}
>  
> Do something like this:
> {code:java}
> log4j2.logger.jsonSchema.name = org.apache.unomi.schema.impl 
> log4j2.logger.jsonSchema.level = 
> ${org.apache.unomi.logs.jsonschema.level:-INFO} {code}
> to be associated env variable (custom.system.properties): 
> {code:java}
> org.apache.unomi.logs.jsonschema.level=${env:UNOMI_LOGS_JSONSCHEMA_LEVEL:-INFO}
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to