Avoid returning fake log_file_name
This commit is contained in:
parent
62b390b7b9
commit
1b9c039549
@ -14,7 +14,7 @@ __author__ = "Davide Testa"
|
||||
__email__ = "davide@davte.it"
|
||||
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
||||
__license__ = "GNU General Public License v3.0"
|
||||
__version__ = "2.2.0"
|
||||
__version__ = "2.2.1"
|
||||
__maintainer__ = "Davide Testa"
|
||||
__contact__ = "t.me/davte"
|
||||
|
||||
|
@ -243,7 +243,8 @@ class Bot(TelegramBot, ObjectWithDatabase, MultiLanguageObject):
|
||||
|
||||
Fallback to class file if set, otherwise return None.
|
||||
"""
|
||||
return f"{self.path}/data/{self.log_file_name}"
|
||||
if self.log_file_name:
|
||||
return f"{self.path}/data/{self.log_file_name}"
|
||||
|
||||
def set_log_file_name(self, file_name):
|
||||
"""Set log file name."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user