Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging Truncate not Working #47

Open
Makina2 opened this issue Apr 6, 2023 · 1 comment
Open

Logging Truncate not Working #47

Makina2 opened this issue Apr 6, 2023 · 1 comment

Comments

@Makina2
Copy link

Makina2 commented Apr 6, 2023

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

@Nikorasu
Copy link

Nikorasu commented Apr 11, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants