refactor: deduplicate logger into shared module#39
Merged
gavrielc merged 1 commit intoqwibitai:mainfrom Feb 3, 2026
Merged
Conversation
chidev
referenced
this pull request
in lev-os/nanoclaw
Feb 3, 2026
Extract identical pino logger configuration from index.ts, container-runner.ts, and task-scheduler.ts into a shared src/logger.ts module. Net -9 lines, zero behavior change. Upstream: gavrielc/nanoclaw#39
This was referenced Feb 3, 2026
chidev
referenced
this pull request
in lev-os/nanoclaw
Feb 3, 2026
Extract identical pino logger configuration from index.ts, container-runner.ts, and task-scheduler.ts into a shared src/logger.ts module. Net -9 lines, zero behavior change. Upstream: gavrielc/nanoclaw#39
|
Reviewed and tested on our fork. LGTM ✅ Textbook DRY refactor — 3 identical pino configs consolidated into shared Recommend merging this before PR #24 (Linux Docker) since both touch |
chidev
referenced
this pull request
in lev-os/nanoclaw
Feb 3, 2026
Extract identical pino logger configuration from index.ts, container-runner.ts, and task-scheduler.ts into a shared src/logger.ts module. Net -9 lines, zero behavior change. Upstream: gavrielc/nanoclaw#39
c83bc27 to
80e68dc
Compare
three files created identical pino logger instances with the same config. extract into src/logger.ts and import from each consumer. net -9 lines, no behavior change. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
e9b3d3e to
4a1974e
Compare
Collaborator
|
@Ejae-dev less code! Love it 😍 More of this please |
BenSanex
pushed a commit
to BenSanex/nanoclaw
that referenced
this pull request
Feb 4, 2026
three files created identical pino logger instances with the same config. extract into src/logger.ts and import from each consumer. net -9 lines, no behavior change. Co-authored-by: ejae <ejae_dev@ejaes-Mac-mini.home> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
darkbringer1
pushed a commit
to darkbringer1/nanoclaw
that referenced
this pull request
Feb 7, 2026
three files created identical pino logger instances with the same config. extract into src/logger.ts and import from each consumer. net -9 lines, no behavior change. Co-authored-by: ejae <ejae_dev@ejaes-Mac-mini.home> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
TerrifiedBug
referenced
this pull request
in TerrifiedBug/nanotars
Feb 9, 2026
three files created identical pino logger instances with the same config. extract into src/logger.ts and import from each consumer. net -9 lines, no behavior change. Co-authored-by: ejae <ejae_dev@ejaes-Mac-mini.home> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
tunmaker
pushed a commit
to tunmaker/nanoclaw
that referenced
this pull request
Feb 24, 2026
three files created identical pino logger instances with the same config. extract into src/logger.ts and import from each consumer. net -9 lines, no behavior change. Co-authored-by: ejae <ejae_dev@ejaes-Mac-mini.home> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
bebekim
pushed a commit
to bebekim/goodclaw
that referenced
this pull request
Mar 14, 2026
three files created identical pino logger instances with the same config. extract into src/logger.ts and import from each consumer. net -9 lines, no behavior change. Co-authored-by: ejae <ejae_dev@ejaes-Mac-mini.home> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
squarewings
pushed a commit
to squarewings/nanoclaw
that referenced
this pull request
Mar 15, 2026
three files created identical pino logger instances with the same config. extract into src/logger.ts and import from each consumer. net -9 lines, no behavior change. Co-authored-by: ejae <ejae_dev@ejaes-Mac-mini.home> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
kenansun-dev-bot Bot
pushed a commit
to kenansun-dev/nanoclaw-github-copilot
that referenced
this pull request
Apr 12, 2026
…bitai#39) New format: chats: { telegram: [{ jid: 'tg:123', name: 'kenan', isMain: true }] } Old format still supported (auto-detected on load). Save always writes new format. Internal runtime format unchanged (flat Record<jid, config>). 344/344 tests pass. Co-authored-by: Kenan VM Claw <vm-claw@kenan.dev>
dm-j
pushed a commit
to dm-j/nanoclaw
that referenced
this pull request
Apr 13, 2026
three files created identical pino logger instances with the same config. extract into src/logger.ts and import from each consumer. net -9 lines, no behavior change. Co-authored-by: ejae <ejae_dev@ejaes-Mac-mini.home> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
.claude/skills/Description
three files (
index.ts,container-runner.ts,task-scheduler.ts) each created their own identical pino logger with the same config:this extracts it into a single
src/logger.tsmodule and replaces the three copies with imports. net result: -9 lines, zero behavior change.files changed:
src/logger.tssrc/index.tssrc/container-runner.tssrc/task-scheduler.tstypechecks clean (
tsc --noEmitpasses with zero errors).