#8075 Don't create log file for helper scripts
Closed: fixed 4 years ago by rcritten. Opened 4 years ago by cheimes.

Issue

Several helper scripts create unnecessary log files in ~/.ipa. The log file is created when a script initialize IPA's ipalib.api with api.bootstrap() but does not pass log=None argument to bootstrap(). These log file are not only wasting disk space but can also create issues with SELinux.

Helper scripts for daemons should just log to stdout / stderr and delegate logging to its daemon.


Metadata Update from @cheimes:
- Issue set to the milestone: FreeIPA 4.8.2 (was: FreeIPA 4.7.3)

4 years ago

Scripts and daemon helpers with in_server=True option log to /var/log/ipa/{context}.log. The PR adds log=None to some helpers that already log to journald.

Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3721

4 years ago

master:

  • 90f7232 Don't create log files from help scripts

ipa-4-8:

  • 3098b67 Don't create log files from help scripts

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata