javaswift / joss

Java library for OpenStack Storage, aka Swift
http://javaswift.org
117 stars 108 forks source link

Do not log token refreshes as errors #172

Open jelmerk opened 5 years ago

jelmerk commented 5 years ago

Our openstack tokens have a limited lifespan after which a token refresh is required

When this happens org.javaswift.joss.command.impl.core.AbstractCommand will log things like

JOSS / HTTP PUT call https://swift.foo.com/v1/635dc89302e143559de621fa91b0f875/bucket/file, HTTP status 401, Error UNAUTHORIZED

At level error. However these are not errors, they are inevitable as part of the refresh process.

Logging at info level would be more appropriate

jelmerk commented 4 years ago

Workaround

<logger name="org.javaswift.joss.command.impl.core.AbstractCommand" level="OFF" />