Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious, continuous lines in out.log #1061

Open
mpern opened this issue Oct 30, 2023 · 1 comment
Open

Spurious, continuous lines in out.log #1061

mpern opened this issue Oct 30, 2023 · 1 comment
Labels

Comments

@mpern
Copy link

mpern commented Oct 30, 2023

Summary. Running aria2c as service creates massive log file because WinSW keeps appending empty/whitespace lines

Steps to reproduce

Setup aria2c as a service using the provided config file.

<service>
  <id>aria2c-service</id>
  <name>Aria2c</name>
  <executable>C:\path\to\aria2c.exe</executable>
  <arguments>--enable-rpc</arguments>
  <delayedAutoStart>true</delayedAutoStart>
  <log mode="roll-by-time">
    <pattern>yyyyMMdd</pattern>
  </log>
  <onfailure action="restart" />
</service>

Result:
Service starts as expected, but new lines keep appearing in aria2c-service_TIMESTAMP.out.log every second(?).
(79 spaces followed by two newlines)


10/30 20:46:52 [�[1;32mNOTICE�[0m] IPv4 RPC: listening on TCP port 6800

10/30 20:46:52 [�[1;32mNOTICE�[0m] IPv6 RPC: listening on TCP port 6800

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

Environment

  • WinSW version: WinSW v3.0.0-alpha.11
  • WinSW package type: WinSW-x64
  • Windows version: Windows 10
  • Wrapped executable and version: aria2 version 1.36.0

Possible Solution

@mpern mpern added the bug label Oct 30, 2023
@mpern
Copy link
Author

mpern commented Oct 30, 2023

If I run aria2 simply from the command line, the output just prints the startup logs and then stops, as expected, so it's not aria that continues to emit lines.

@mpern mpern changed the title Spurious newlines in out.log Spurious, continuous lines in out.log Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant