Skip to content

Create missing log path#80

Merged
babarot merged 2 commits intobabarot:mainfrom
kariudo:master
Feb 20, 2025
Merged

Create missing log path#80
babarot merged 2 commits intobabarot:mainfrom
kariudo:master

Conversation

@kariudo
Copy link
Copy Markdown
Contributor

@kariudo kariudo commented Feb 20, 2025

WHAT

Create missing logpath, and support environment variables.

WHY

Log path not completely existing would cause failover to stderr output, and environment variables for log and config path were not used if not blank.

Sidenote

There should probably configurable support for log verbosity, theres a pretty large volume of logging for each run flowing through the charm log right now, since most people probably wont ever look at the log, logging debug by default (warn/error instead) is probably overkill and just going to slowly eat disk.

If the log path did not exist, it would silently fallover
to printing all output (DEBUG) to stderr.

Also add support for accepting paths via env vars.
Copy link
Copy Markdown
Owner

@babarot babarot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@babarot
Copy link
Copy Markdown
Owner

babarot commented Feb 20, 2025

There should probably configurable support for log verbosity, theres a pretty large volume of logging for each run flowing through the charm log right now, since most people probably wont ever look at the log, logging debug by default (warn/error instead) is probably overkill and just going to slowly eat disk.

That's right. Debug logs are probably only useful for troubleshooting—or for me, really. It might be a good idea to enable them via a config file or only output them when --debug=live is specified. As you mentioned, we should consider ways to prevent unnecessary disk usage. I’ll add this to the backlog.

@babarot babarot merged commit 36fe258 into babarot:main Feb 20, 2025
5 checks passed
@github-actions github-actions bot mentioned this pull request Feb 19, 2025
@babarot babarot mentioned this pull request Feb 21, 2025
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Mar 6, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [babarot/gomi](https://github.com/babarot/gomi) | minor | `v1.4.3` -> `v1.5.1` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>babarot/gomi (babarot/gomi)</summary>

### [`v1.5.1`](https://github.com/babarot/gomi/blob/HEAD/CHANGELOG.md#v151---2025-02-23)

[Compare Source](babarot/gomi@v1.5.0...v1.5.1)

##### New Features

-   Add Log Rotation feature by [@&#8203;babarot](https://github.com/babarot) in babarot/gomi#82

### [`v1.5.0`](https://github.com/babarot/gomi/blob/HEAD/CHANGELOG.md#v150---2025-02-21)

[Compare Source](babarot/gomi@v1.4.3...v1.5.0)

##### New Features

-   Add Permanent Deletion Feature with Confirmation Dialog   by [@&#8203;babarot](https://github.com/babarot) in babarot/gomi#79

##### Refactorings

-   Large-scale Code Refactoring for Better Architecture by [@&#8203;babarot](https://github.com/babarot) in babarot/gomi#81

##### Others

-   Create missing log path by [@&#8203;kariudo](https://github.com/kariudo) in babarot/gomi#80

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODIuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4Mi40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants