Open reubenmiller opened 1 month ago
:
.
- I'm against the idea to use url encoding. We just need to use another separator instead of columns
:
.
Though this raises interesting questions about a similar scenario where the external identity is used to store the child device supported operations (under /etc/tedge/operations/c8y/<external_identity>
), where thin-edge.io also uses colons (:
).
Is your feature improvement request related to a problem? Please describe.
The current tedge-agent log file names under
/var/log/tedge/agent/*.log
use the colon (:
) character which results in slight annoyances when selecting files names on the console, or transferring the log files to NTFS storage mediums.This mostly affects the log files created when the command id is based on a timestamp (e.g. RFC3339).
Below shows an example of some of the files which make use of colons (
:
):See the Additional Context section for more examples where this incompatibility was discovered.
Describe the solution you'd like
Avoid using colons (
:
) in the log file names to improve portability and usability of the log files.It should be noted that it might be also worthwhile changing the tedge MQTT command id (which is where the filename is being derived from) to also avoid using colons (
:
) so that the command id and filename remain in sync.There are a few options to consider how to format the log file names:
Option 1: Just strip the
:
characterOption 2: Use url encoding
Describe alternatives you've considered
Additional context
Using Github Action: upload artifact action
The following error was printed whilst trying to upload the log files collected from a thin-edge.io system test run, and upload them to the Github Runner.
Below also shows the aforementioned forbidden filepath characters as listed on the Microsoft documentation:
Using iTerm - MacOS Terminal
Selecting the file on the command line is annoying because the default setting in iTerm is to treat the
:
as a word separator, so double clicking on the file name will only highly before or after the:
character. Below shows a screenshot when trying to double click the filename: