You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to truncate log.txt by using logging.truncate (120) as in the the Kevin McLeer video. I get "TypeError: function takes 2 positional arguments but 1 were given" when I run the code.
Can anyone help please
The text was updated successfully, but these errors were encountered:
I just noticed I get an error if I'm using truncate, but the log.txt file hasn't been created yet.
Also, I think you're not giving it enough arguments, gotta give it the filename too: truncate('log.txt',16384)(doubles default size)
Hi, I am trying to truncate log.txt by using logging.truncate (120) as in the the Kevin McLeer video. I get "TypeError: function takes 2 positional arguments but 1 were given" when I run the code.
Can anyone help please
The text was updated successfully, but these errors were encountered: