Skip to content

Commit

Permalink
logging: fix the length limit of packages info dbg message
Browse files Browse the repository at this point in the history
Should fix

23:22:51,735 WARNING rsyslogd:message too long (8104) with configured
size 8096, begin of message is: anaconda: main: Image packages:
fuse3-libs-3.16.2-4.fc41.x86_64 gawk-5.3.0-4.fc4 [v8.2408.0-2.fc42 try
https://www.rsyslog.com/e/2445 ]
  • Loading branch information
rvykydal committed Oct 15, 2024
1 parent 93f7e96 commit 0f5baa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anaconda.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def setup_environment():

log.info("%s %s", sys.argv[0], util.get_anaconda_version_string(build_time_version=True))
# Do not exceed default 8K limit on message length in rsyslog
for log_line in util.get_image_packages_info(max_string_chars=8096-100):
for log_line in util.get_image_packages_info(max_string_chars=8096-120):
log.debug("Image packages: %s", log_line)

if opts.updates_url:
Expand Down

0 comments on commit 0f5baa5

Please sign in to comment.