Skip to content

Logs - replace forward slash (/) with underscore#268

Merged
bugy merged 2 commits into
bugy:masterfrom
drehelis:master
Mar 7, 2020
Merged

Logs - replace forward slash (/) with underscore#268
bugy merged 2 commits into
bugy:masterfrom
drehelis:master

Conversation

@drehelis

@drehelis drehelis commented Mar 7, 2020

Copy link
Copy Markdown
Contributor

Hi,

I was playing with script-server for the first time today and noticed you cannot use '/' in the script name as it breaks the logging on the filesystem due to... well, obvious reasons :-)

FileNotFoundError: [Errno 2] No such file or directory: 'logs/processes/Group_add/remove_a_member_<host>_200307_134140.log'

There might be a better approach to do this as more chars may break this.

For your consideration

FileNotFoundError: [Errno 2] No such file or directory: 'logs/processes/Group_add/remove_a_member_<host>_200307_134140.log'
@bugy

bugy commented Mar 7, 2020

Copy link
Copy Markdown
Owner

Nice catch!
The fix looks good to me, so far after 3 years there were no complains about other chars :)

Thanks a lot!

@bugy

bugy commented Mar 7, 2020

Copy link
Copy Markdown
Owner

@autogun hmm, I had wrong tests, now they are failing because of wrongly expected name

@drehelis

drehelis commented Mar 7, 2020

Copy link
Copy Markdown
Contributor Author

@bugy IMHO, back & forward slashes should be avoided when it comes to naming conventions. See if agree to the test fix :)

@bugy

bugy commented Mar 7, 2020

Copy link
Copy Markdown
Owner

@autogun ye, it's better to avoid slashes. Don't know why I used it for the test :)
Thanks for the fix!

@bugy bugy merged commit dbd3f50 into bugy:master Mar 7, 2020
@bugy bugy added the bug label Mar 16, 2020
@bugy bugy added this to the 1.16.0 milestone Mar 16, 2020
@bugy bugy added the resolved label Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants