JetBrains / teamcity-docker-agent

TeamCity agent docker image sources
https://hub.docker.com/r/jetbrains/teamcity-agent/
Apache License 2.0
77 stars 64 forks source link

Log line formatting issue #17

Closed vancluever closed 6 years ago

vancluever commented 6 years ago

The below output is from just running docker run -it -e SERVER_URL="https://localhost/" jetbrains/teamcity-agent. It appears that the first few characters of the log lines are being eaten by something - possibly bad log formatting options somewhere?

[2018-02-28 18:54:18,227]   INFO - rver.plugins.PluginManagerImpl - =========================================================== 
[2018-02-28 18:54:18,227]   INFO - rver.plugins.PluginManagerImpl - Plugins initialization started... 
[2018-02-28 18:54:18,228]   INFO - rver.plugins.PluginManagerImpl - Scanning plugins folders 
[2018-02-28 18:54:18,229]   INFO - .plugins.files.JarSearcherBase - Scanning plugin folder: /opt/buildagent/plugins 
[2018-02-28 18:54:18,230]   INFO - .plugins.files.JarSearcherBase - Scanning plugin folder: /opt/buildagent/tools 
[2018-02-28 18:54:18,240]   INFO - rver.plugins.PluginManagerImpl - Found 1 non bundled plugins: [amazonEC2] 
[2018-02-28 18:54:18,240]   INFO - rver.plugins.PluginManagerImpl - Found 0 bundled plugins: [] 
[2018-02-28 18:54:18,241]   INFO - rver.plugins.PluginsCollection - Load shared classloader for 1 plugins [amazonEC2] 
[2018-02-28 18:54:18,245]   INFO - rver.plugins.PluginsCollection - No plugins were loaded with standalone classloaders 
[2018-02-28 18:54:18,336]   INFO - rver.plugins.PluginManagerImpl - Plugins initialization completed (1 plugins loaded): [amazonEC2] 
[2018-02-28 18:54:18,338]   INFO - rver.plugins.PluginManagerImpl - =========================================================== 
VladRassokhin commented 6 years ago

That's ok, we use formatting which truncates logging category: [%d] %6p - %30.30c - %m %n, you may change it if you need in teamcity-agent-log4j.xml file