-
Notifications
You must be signed in to change notification settings - Fork 195
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
extract all times from all log files isn't working #13
Comments
My log file names are: can the error come frome those files where the names have no timestapm in the names(like windows_.txt)? I also tried to debug and after executing this code, but without of casting to int L = [] extract all times. all log files of form {type}_{stamp}.txtts = [x[x.find('_')+1:x.find('.txt')] for x in L] |
Hi, strange that this is happening - you're right there should be timestamps following the underscore. Somehow the code is failing to get the timestamp, or compute it sometimes. I haven't seen this issue so far with anyone before so I'm not sure what this could be. Ideally you'd descend down into the code (the logging code is relatively simply) and try to do those calls in console to try to narrow down what's going on. Sorry I don't have very useful comments about this. |
I wasn't able to reproduce the problem again. I tried at least for 12 times to delete the whole statistic, but ulogme was every time able to create files with correct time stamps. don't know why it was not working for the very first time. |
I did have the same error in OS X. Deleting files in logs/ and rerun ./ulogme.sh by using python 2.7.8 fixed the problem. |
Had a weird experience where
even though |
Hello,
in file export_events.py on the line 54 the interpeter generates an exeption:
Traceback (most recent call last):
File "export_events.py", line 117, in
updateEvents()
File "export_events.py", line 54, in updateEvents
ts = [int(x[x.find('_')+1:x.find('.txt')]) for x in L]
ValueError: invalid literal for int() with base 10:
The text was updated successfully, but these errors were encountered: