{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/156","labels_url":"https://api.github.com/repos/systemd/systemd/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/156/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/156/events","html_url":"https://github.com/systemd/systemd/pull/156","id":87219590,"number":156,"title":"journald: do not strip leading whitespace from messages","user":{"login":"filbranden","id":106037,"avatar_url":"https://avatars.githubusercontent.com/u/106037?v=3","gravatar_id":"","url":"https://api.github.com/users/filbranden","html_url":"https://github.com/filbranden","followers_url":"https://api.github.com/users/filbranden/followers","following_url":"https://api.github.com/users/filbranden/following{/other_user}","gists_url":"https://api.github.com/users/filbranden/gists{/gist_id}","starred_url":"https://api.github.com/users/filbranden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filbranden/subscriptions","organizations_url":"https://api.github.com/users/filbranden/orgs","repos_url":"https://api.github.com/users/filbranden/repos","events_url":"https://api.github.com/users/filbranden/events{/privacy}","received_events_url":"https://api.github.com/users/filbranden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/journal","name":"journal","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-11T05:38:38Z","updated_at":"2015-06-11T15:25:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/156","html_url":"https://github.com/systemd/systemd/pull/156","diff_url":"https://github.com/systemd/systemd/pull/156.diff","patch_url":"https://github.com/systemd/systemd/pull/156.patch"},"body":"Keep leading whitespace for compatibility with older syslog implementations.  Also useful when piping formatted output to the `logger` command.  Keep removing trailing whitespace.\r\n\r\nTested with `pstree | logger` and checking that the output of `journalctl | tail` included aligned and formatted output.\r\n\r\nConfirmed that all test cases still pass as expected.\r\n\r\nThis should fix #98 @poettering @msekletar \r\n\r\nMaybe needs more testing... let me know what you think...\r\n\r\nCheers,\r\nFilipe\r\n"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/111172243","html_url":"https://github.com/systemd/systemd/pull/156#issuecomment-111172243","issue_url":"https://api.github.com/repos/systemd/systemd/issues/156","id":111172243,"user":{"login":"filbranden","id":106037,"avatar_url":"https://avatars.githubusercontent.com/u/106037?v=3","gravatar_id":"","url":"https://api.github.com/users/filbranden","html_url":"https://github.com/filbranden","followers_url":"https://api.github.com/users/filbranden/followers","following_url":"https://api.github.com/users/filbranden/following{/other_user}","gists_url":"https://api.github.com/users/filbranden/gists{/gist_id}","starred_url":"https://api.github.com/users/filbranden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filbranden/subscriptions","organizations_url":"https://api.github.com/users/filbranden/orgs","repos_url":"https://api.github.com/users/filbranden/repos","events_url":"https://api.github.com/users/filbranden/events{/privacy}","received_events_url":"https://api.github.com/users/filbranden/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T15:25:23Z","updated_at":"2015-06-11T15:25:23Z","body":"@msekletar There is a space used as a separator after the field preceding the message...\r\n\r\nI tested this with `pstree | logger` for which the first message has no indent and the next messages have indent and looking at them in the pstree output they aligned perfectly.\r\n\r\nBut maybe I'm missing something... maybe try removing it and see what happens, I'm thinking you'll end up with an extra introduced leading space on all messages, but hey I might be wrong.\r\n\r\nCheers,\r\nFilipe\r\n"}}