mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 20:43:08 +00:00
Merge pull request #2670 from thelounge/xpaw/text-log-extension
Don't put .log in text log folder name
This commit is contained in:
commit
78eae2be88
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ class TextFileMessageStorage {
|
|||
|
||||
line += "\n";
|
||||
|
||||
fs.appendFile(path.join(logPath, cleanFilename(channel.name)), line, (e) => {
|
||||
fs.appendFile(path.join(logPath, `${cleanFilename(channel.name)}.log`), line, (e) => {
|
||||
if (e) {
|
||||
log.error("Failed to write user log", e);
|
||||
}
|
||||
|
@ -122,5 +122,5 @@ function cleanFilename(name) {
|
|||
name = filenamify(name, {replacement: "_"});
|
||||
name = name.toLowerCase();
|
||||
|
||||
return `${name}.log`;
|
||||
return name;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue