{"action":"created","issue":{"url":"https://api.github.com/repos/Technolords/microservice-mock/issues/21","repository_url":"https://api.github.com/repos/Technolords/microservice-mock","labels_url":"https://api.github.com/repos/Technolords/microservice-mock/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Technolords/microservice-mock/issues/21/comments","events_url":"https://api.github.com/repos/Technolords/microservice-mock/issues/21/events","html_url":"https://github.com/Technolords/microservice-mock/issues/21","id":185897065,"number":21,"title":"Some properties in the configuration file do not work","user":{"login":"Technolords","id":12892296,"avatar_url":"https://avatars.githubusercontent.com/u/12892296?v=3","gravatar_id":"","url":"https://api.github.com/users/Technolords","html_url":"https://github.com/Technolords","followers_url":"https://api.github.com/users/Technolords/followers","following_url":"https://api.github.com/users/Technolords/following{/other_user}","gists_url":"https://api.github.com/users/Technolords/gists{/gist_id}","starred_url":"https://api.github.com/users/Technolords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Technolords/subscriptions","organizations_url":"https://api.github.com/users/Technolords/orgs","repos_url":"https://api.github.com/users/Technolords/repos","events_url":"https://api.github.com/users/Technolords/events{/privacy}","received_events_url":"https://api.github.com/users/Technolords/received_events","type":"User","site_admin":false},"labels":[{"id":410660154,"url":"https://api.github.com/repos/Technolords/microservice-mock/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"Technolords","id":12892296,"avatar_url":"https://avatars.githubusercontent.com/u/12892296?v=3","gravatar_id":"","url":"https://api.github.com/users/Technolords","html_url":"https://github.com/Technolords","followers_url":"https://api.github.com/users/Technolords/followers","following_url":"https://api.github.com/users/Technolords/following{/other_user}","gists_url":"https://api.github.com/users/Technolords/gists{/gist_id}","starred_url":"https://api.github.com/users/Technolords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Technolords/subscriptions","organizations_url":"https://api.github.com/users/Technolords/orgs","repos_url":"https://api.github.com/users/Technolords/repos","events_url":"https://api.github.com/users/Technolords/events{/privacy}","received_events_url":"https://api.github.com/users/Technolords/received_events","type":"User","site_admin":false},"assignees":[{"login":"Technolords","id":12892296,"avatar_url":"https://avatars.githubusercontent.com/u/12892296?v=3","gravatar_id":"","url":"https://api.github.com/users/Technolords","html_url":"https://github.com/Technolords","followers_url":"https://api.github.com/users/Technolords/followers","following_url":"https://api.github.com/users/Technolords/following{/other_user}","gists_url":"https://api.github.com/users/Technolords/gists{/gist_id}","starred_url":"https://api.github.com/users/Technolords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Technolords/subscriptions","organizations_url":"https://api.github.com/users/Technolords/orgs","repos_url":"https://api.github.com/users/Technolords/repos","events_url":"https://api.github.com/users/Technolords/events{/privacy}","received_events_url":"https://api.github.com/users/Technolords/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-10-28T11:08:04Z","updated_at":"2016-10-28T11:09:11Z","closed_at":null,"body":"When testing this feature (using the -Dprops=mock.properties), it turns out that:\r\n1) port configuration is ignored\r\n2) log4j configuration is ignored\r\n\r\nAnalysis:\r\n1) The code was still doing a check to fetch data from CLI and when that was not there it would use a default. The latter was the root cause.\r\n2) At JVM startup, the -Dlog4j.configurationFile=some.xml is automatically picked up by the log4j code underwater. When this property is moved to the properties file it is basically ignored (the JVM is already running)."},"comment":{"url":"https://api.github.com/repos/Technolords/microservice-mock/issues/comments/256894835","html_url":"https://github.com/Technolords/microservice-mock/issues/21#issuecomment-256894835","issue_url":"https://api.github.com/repos/Technolords/microservice-mock/issues/21","id":256894835,"user":{"login":"Technolords","id":12892296,"avatar_url":"https://avatars.githubusercontent.com/u/12892296?v=3","gravatar_id":"","url":"https://api.github.com/users/Technolords","html_url":"https://github.com/Technolords","followers_url":"https://api.github.com/users/Technolords/followers","following_url":"https://api.github.com/users/Technolords/following{/other_user}","gists_url":"https://api.github.com/users/Technolords/gists{/gist_id}","starred_url":"https://api.github.com/users/Technolords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Technolords/subscriptions","organizations_url":"https://api.github.com/users/Technolords/orgs","repos_url":"https://api.github.com/users/Technolords/repos","events_url":"https://api.github.com/users/Technolords/events{/privacy}","received_events_url":"https://api.github.com/users/Technolords/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T11:09:11Z","updated_at":"2016-10-28T11:09:11Z","body":"The solutions are:\r\n1) Add guards prior to setting the value\r\n2) Call an operation that reconfigures the log engine"}}
{"actor":{"display_login":"Technolords"}}