{
	"issue": {
		"url": "https://api.github.com/repos/laurent22/joplin/issues/13503",
		"repository_url": "https://api.github.com/repos/laurent22/joplin",
		"labels_url": "https://api.github.com/repos/laurent22/joplin/issues/13503/labels{/name}",
		"comments_url": "https://api.github.com/repos/laurent22/joplin/issues/13503/comments",
		"events_url": "https://api.github.com/repos/laurent22/joplin/issues/13503/events",
		"html_url": "https://github.com/laurent22/joplin/pull/13503",
		"id": 3537629144,
		"node_id": "PR_kwDOBLftOs6u5ozo",
		"number": 13503,
		"title": "Server: Fixes: #13147: Add LOG_LEVEL env var to control logging verbosity",
		"user": {
			"login": "bhorbowicz",
			"id": 6319394,
			"node_id": "MDQ6VXNlcjYzMTkzOTQ=",
			"avatar_url": "https://avatars.githubusercontent.com/u/6319394?v=4",
			"gravatar_id": "",
			"url": "https://api.github.com/users/bhorbowicz",
			"html_url": "https://github.com/bhorbowicz",
			"followers_url": "https://api.github.com/users/bhorbowicz/followers",
			"following_url": "https://api.github.com/users/bhorbowicz/following{/other_user}",
			"gists_url": "https://api.github.com/users/bhorbowicz/gists{/gist_id}",
			"starred_url": "https://api.github.com/users/bhorbowicz/starred{/owner}{/repo}",
			"subscriptions_url": "https://api.github.com/users/bhorbowicz/subscriptions",
			"organizations_url": "https://api.github.com/users/bhorbowicz/orgs",
			"repos_url": "https://api.github.com/users/bhorbowicz/repos",
			"events_url": "https://api.github.com/users/bhorbowicz/events{/privacy}",
			"received_events_url": "https://api.github.com/users/bhorbowicz/received_events",
			"type": "User",
			"user_view_type": "public",
			"site_admin": false
		},
		"labels": [],
		"state": "closed",
		"locked": false,
		"assignee": null,
		"assignees": [],
		"milestone": null,
		"comments": 6,
		"created_at": "2025-10-21T18:04:18Z",
		"updated_at": "2025-11-25T19:05:22Z",
		"closed_at": "2025-10-22T10:26:02Z",
		"author_association": "CONTRIBUTOR",
		"active_lock_reason": null,
		"draft": false,
		"pull_request": {
			"url": "https://api.github.com/repos/laurent22/joplin/pulls/13503",
			"html_url": "https://github.com/laurent22/joplin/pull/13503",
			"diff_url": "https://github.com/laurent22/joplin/pull/13503.diff",
			"patch_url": "https://github.com/laurent22/joplin/pull/13503.patch",
			"merged_at": "2025-10-22T10:26:02Z"
		},
		"body": "Fixes #13147\r\n\r\n## Summary\r\nThis PR introduces a new environment variable LOG_LEVEL in the Joplin Server configuration, allowing to specify the desired logging verbosity. The default value remains 'info'. Supported values are: none, error, warn, info, debug.\r\n\r\n## Why this is needed\r\nIssue [#13147](https://github.com/laurent22/joplin/issues/13147) described the need for more granular control over server-side logging. By introducing LOG_LEVEL, users can reduce noise (e.g., set to error or none) or increase detail (e.g., debug) for troubleshooting or monitoring purposes.\r\n\r\n## Backward compatibility\r\nNo breaking changes: existing deployments without LOG_LEVEL set will behave as before (info). Logging calls remain unchanged.\r\n\r\n## Testing\r\n1. Start the server without LOG_LEVEL set → expect default behavior at info level.\r\n2. Set LOG_LEVEL=none → run some operations that normally produce logs; verify no log output (or minimal).\r\n3. Set LOG_LEVEL=error → trigger an error condition and verify only error messages appear; no warn/info/debug logs.\r\n4. Set LOG_LEVEL=warn → produce a warning and an info message; verify the warning appears, the info does not.\r\n5. Set LOG_LEVEL=debug → perform normal operations, verifying debug, info, warn, and error logs all appear.\r\n6. Set LOG_LEVEL to an invalid value (e.g., LOG_LEVEL=verbose) → server should log an error about invalid value `Error: Unknown log level: verbose`",
		"closed_by": {
			"login": "laurent22",
			"id": 1285584,
			"node_id": "MDQ6VXNlcjEyODU1ODQ=",
			"avatar_url": "https://avatars.githubusercontent.com/u/1285584?v=4",
			"gravatar_id": "",
			"url": "https://api.github.com/users/laurent22",
			"html_url": "https://github.com/laurent22",
			"followers_url": "https://api.github.com/users/laurent22/followers",
			"following_url": "https://api.github.com/users/laurent22/following{/other_user}",
			"gists_url": "https://api.github.com/users/laurent22/gists{/gist_id}",
			"starred_url": "https://api.github.com/users/laurent22/starred{/owner}{/repo}",
			"subscriptions_url": "https://api.github.com/users/laurent22/subscriptions",
			"organizations_url": "https://api.github.com/users/laurent22/orgs",
			"repos_url": "https://api.github.com/users/laurent22/repos",
			"events_url": "https://api.github.com/users/laurent22/events{/privacy}",
			"received_events_url": "https://api.github.com/users/laurent22/received_events",
			"type": "User",
			"user_view_type": "public",
			"site_admin": false
		},
		"reactions": {
			"url": "https://api.github.com/repos/laurent22/joplin/issues/13503/reactions",
			"total_count": 1,
			"+1": 0,
			"-1": 0,
			"laugh": 0,
			"hooray": 0,
			"confused": 0,
			"heart": 1,
			"rocket": 0,
			"eyes": 0
		},
		"timeline_url": "https://api.github.com/repos/laurent22/joplin/issues/13503/timeline",
		"performed_via_github_app": null,
		"state_reason": null
	},
	"comments": [
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3428460355",
			"html_url": "https://github.com/laurent22/joplin/pull/13503#issuecomment-3428460355",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13503",
			"id": 3428460355,
			"node_id": "IC_kwDOBLftOs7MWidD",
			"user": {
				"login": "github-actions[bot]",
				"id": 41898282,
				"node_id": "MDM6Qm90NDE4OTgyODI=",
				"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/github-actions%5Bbot%5D",
				"html_url": "https://github.com/apps/github-actions",
				"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
				"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
				"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
				"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
				"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
				"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
				"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
				"type": "Bot",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-10-21T18:05:31Z",
			"updated_at": "2025-10-22T10:26:18Z",
			"body": "****CLA Assistant Lite bot**** All contributors have signed the CLA  ✍️ ✅",
			"author_association": "CONTRIBUTOR",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3428460355/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": {
				"id": 15368,
				"client_id": "Iv1.05c79e9ad1f6bdfa",
				"slug": "github-actions",
				"node_id": "MDM6QXBwMTUzNjg=",
				"owner": {
					"login": "github",
					"id": 9919,
					"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
					"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
					"gravatar_id": "",
					"url": "https://api.github.com/users/github",
					"html_url": "https://github.com/github",
					"followers_url": "https://api.github.com/users/github/followers",
					"following_url": "https://api.github.com/users/github/following{/other_user}",
					"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
					"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
					"subscriptions_url": "https://api.github.com/users/github/subscriptions",
					"organizations_url": "https://api.github.com/users/github/orgs",
					"repos_url": "https://api.github.com/users/github/repos",
					"events_url": "https://api.github.com/users/github/events{/privacy}",
					"received_events_url": "https://api.github.com/users/github/received_events",
					"type": "Organization",
					"user_view_type": "public",
					"site_admin": false
				},
				"name": "GitHub Actions",
				"description": "Automate your workflow from idea to production",
				"external_url": "https://help.github.com/en/actions",
				"html_url": "https://github.com/apps/github-actions",
				"created_at": "2018-07-30T09:30:17Z",
				"updated_at": "2025-11-12T15:38:39Z",
				"permissions": {
					"actions": "write",
					"administration": "read",
					"artifact_metadata": "write",
					"attestations": "write",
					"checks": "write",
					"contents": "write",
					"deployments": "write",
					"discussions": "write",
					"issues": "write",
					"merge_queues": "write",
					"metadata": "read",
					"models": "read",
					"packages": "write",
					"pages": "write",
					"pull_requests": "write",
					"repository_hooks": "write",
					"repository_projects": "write",
					"security_events": "write",
					"statuses": "write",
					"vulnerability_alerts": "read"
				},
				"events": [
					"branch_protection_rule",
					"check_run",
					"check_suite",
					"create",
					"delete",
					"deployment",
					"deployment_status",
					"discussion",
					"discussion_comment",
					"fork",
					"gollum",
					"issues",
					"issue_comment",
					"label",
					"merge_group",
					"milestone",
					"page_build",
					"public",
					"pull_request",
					"pull_request_review",
					"pull_request_review_comment",
					"push",
					"registry_package",
					"release",
					"repository",
					"repository_dispatch",
					"status",
					"watch",
					"workflow_dispatch",
					"workflow_run"
				]
			}
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3428465212",
			"html_url": "https://github.com/laurent22/joplin/pull/13503#issuecomment-3428465212",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13503",
			"id": 3428465212,
			"node_id": "IC_kwDOBLftOs7MWjo8",
			"user": {
				"login": "bhorbowicz",
				"id": 6319394,
				"node_id": "MDQ6VXNlcjYzMTkzOTQ=",
				"avatar_url": "https://avatars.githubusercontent.com/u/6319394?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/bhorbowicz",
				"html_url": "https://github.com/bhorbowicz",
				"followers_url": "https://api.github.com/users/bhorbowicz/followers",
				"following_url": "https://api.github.com/users/bhorbowicz/following{/other_user}",
				"gists_url": "https://api.github.com/users/bhorbowicz/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/bhorbowicz/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/bhorbowicz/subscriptions",
				"organizations_url": "https://api.github.com/users/bhorbowicz/orgs",
				"repos_url": "https://api.github.com/users/bhorbowicz/repos",
				"events_url": "https://api.github.com/users/bhorbowicz/events{/privacy}",
				"received_events_url": "https://api.github.com/users/bhorbowicz/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-10-21T18:06:01Z",
			"updated_at": "2025-10-21T18:06:01Z",
			"body": "I have read the CLA Document and I hereby sign the CLA",
			"author_association": "CONTRIBUTOR",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3428465212/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3431621137",
			"html_url": "https://github.com/laurent22/joplin/pull/13503#issuecomment-3431621137",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13503",
			"id": 3431621137,
			"node_id": "IC_kwDOBLftOs7MimIR",
			"user": {
				"login": "laurent22",
				"id": 1285584,
				"node_id": "MDQ6VXNlcjEyODU1ODQ=",
				"avatar_url": "https://avatars.githubusercontent.com/u/1285584?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/laurent22",
				"html_url": "https://github.com/laurent22",
				"followers_url": "https://api.github.com/users/laurent22/followers",
				"following_url": "https://api.github.com/users/laurent22/following{/other_user}",
				"gists_url": "https://api.github.com/users/laurent22/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/laurent22/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/laurent22/subscriptions",
				"organizations_url": "https://api.github.com/users/laurent22/orgs",
				"repos_url": "https://api.github.com/users/laurent22/repos",
				"events_url": "https://api.github.com/users/laurent22/events{/privacy}",
				"received_events_url": "https://api.github.com/users/laurent22/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-10-22T10:26:09Z",
			"updated_at": "2025-10-22T10:26:09Z",
			"body": "Thank you for adding this!",
			"author_association": "OWNER",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3431621137/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3568434193",
			"html_url": "https://github.com/laurent22/joplin/pull/13503#issuecomment-3568434193",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13503",
			"id": 3568434193,
			"node_id": "IC_kwDOBLftOs7UsfwR",
			"user": {
				"login": "user-mb",
				"id": 59668327,
				"node_id": "MDQ6VXNlcjU5NjY4MzI3",
				"avatar_url": "https://avatars.githubusercontent.com/u/59668327?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/user-mb",
				"html_url": "https://github.com/user-mb",
				"followers_url": "https://api.github.com/users/user-mb/followers",
				"following_url": "https://api.github.com/users/user-mb/following{/other_user}",
				"gists_url": "https://api.github.com/users/user-mb/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/user-mb/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/user-mb/subscriptions",
				"organizations_url": "https://api.github.com/users/user-mb/orgs",
				"repos_url": "https://api.github.com/users/user-mb/repos",
				"events_url": "https://api.github.com/users/user-mb/events{/privacy}",
				"received_events_url": "https://api.github.com/users/user-mb/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-11-23T23:02:11Z",
			"updated_at": "2025-11-23T23:02:11Z",
			"body": "hi guys, i tried to change the log level via the .env or env variable, but the container logs stay at info.\r\ni am using podman.\r\n\r\n~~~\r\nLOG_LEVEL=warn\r\n~~~\r\n",
			"author_association": "NONE",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3568434193/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3576901061",
			"html_url": "https://github.com/laurent22/joplin/pull/13503#issuecomment-3576901061",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13503",
			"id": 3576901061,
			"node_id": "IC_kwDOBLftOs7VMy3F",
			"user": {
				"login": "bhorbowicz",
				"id": 6319394,
				"node_id": "MDQ6VXNlcjYzMTkzOTQ=",
				"avatar_url": "https://avatars.githubusercontent.com/u/6319394?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/bhorbowicz",
				"html_url": "https://github.com/bhorbowicz",
				"followers_url": "https://api.github.com/users/bhorbowicz/followers",
				"following_url": "https://api.github.com/users/bhorbowicz/following{/other_user}",
				"gists_url": "https://api.github.com/users/bhorbowicz/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/bhorbowicz/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/bhorbowicz/subscriptions",
				"organizations_url": "https://api.github.com/users/bhorbowicz/orgs",
				"repos_url": "https://api.github.com/users/bhorbowicz/repos",
				"events_url": "https://api.github.com/users/bhorbowicz/events{/privacy}",
				"received_events_url": "https://api.github.com/users/bhorbowicz/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-11-25T18:07:47Z",
			"updated_at": "2025-11-25T18:07:47Z",
			"body": "I tested this in the latest [revision ](https://github.com/laurent22/joplin/commit/a0bdc1fa9b8513509649869bfda37a07aeed31ce) and it works without any issues. @user-mb which version are you using? This feature will be available in [Joplin Server 3.5.x](https://github.com/laurent22/joplin/blob/dev/readme/about/release_cycle.md).",
			"author_association": "CONTRIBUTOR",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3576901061/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3577150717",
			"html_url": "https://github.com/laurent22/joplin/pull/13503#issuecomment-3577150717",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13503",
			"id": 3577150717,
			"node_id": "IC_kwDOBLftOs7VNvz9",
			"user": {
				"login": "user-mb",
				"id": 59668327,
				"node_id": "MDQ6VXNlcjU5NjY4MzI3",
				"avatar_url": "https://avatars.githubusercontent.com/u/59668327?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/user-mb",
				"html_url": "https://github.com/user-mb",
				"followers_url": "https://api.github.com/users/user-mb/followers",
				"following_url": "https://api.github.com/users/user-mb/following{/other_user}",
				"gists_url": "https://api.github.com/users/user-mb/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/user-mb/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/user-mb/subscriptions",
				"organizations_url": "https://api.github.com/users/user-mb/orgs",
				"repos_url": "https://api.github.com/users/user-mb/repos",
				"events_url": "https://api.github.com/users/user-mb/events{/privacy}",
				"received_events_url": "https://api.github.com/users/user-mb/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-11-25T19:05:21Z",
			"updated_at": "2025-11-25T19:05:21Z",
			"body": "> I tested this in the latest [revision ](https://github.com/laurent22/joplin/commit/a0bdc1fa9b8513509649869bfda37a07aeed31ce) and it works without any issues. @user-mb which version are you using? This feature will be available in [Joplin Server 3.5.x](https://github.com/laurent22/joplin/blob/dev/readme/about/release_cycle.md).\r\n\r\nThank you for checking this quickly. It's my mistake.\r\n\r\nI am using docker.io/joplin/server:latest which seems to be version 3.4.3",
			"author_association": "NONE",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3577150717/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		}
	]
}