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

Removing date/time from bot output #4800

Closed
nirvana7777 opened this issue Aug 27, 2016 · 12 comments
Closed

Removing date/time from bot output #4800

nirvana7777 opened this issue Aug 27, 2016 · 12 comments

Comments

@nirvana7777
Copy link

nirvana7777 commented Aug 27, 2016

Expected Behavior

Moving towards pokestop Keppel Island Marina - 0.14km

Actual Behavior

2016-08-27 18:04:19,285 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Keppel Island Marina - 0.14km

Your FULL config.json (remove your username, password, gmapkey and any other private info)

Output when issue occurred

Steps to Reproduce

I have tried looking for the doc where I can fix this issue but can't find it.

Other Information

OS: Arch 32bit

Branch: master

Git Commit:

Python Version: python2

Any other relevant files/configs (eg: path files)

@Lntnam
Copy link

Lntnam commented Aug 27, 2016

what is the problem?

@nirvana7777
Copy link
Author

Problem is how to remove " " from bot line outputs. Thank you.

@nirvana7777
Copy link
Author

remove " (date) (time) " *

@nirvana7777
Copy link
Author

I want it to be " moving towards pokestop XXX - X.Xkm "

Instead of " (date) (time) moving towards pokestop XXX - X.Xkm "

@Lntnam
Copy link

Lntnam commented Aug 27, 2016

I believe date, time, component's name & action is the standard log output template and there's very little reason we should remove them.

@mjmadsen
Copy link
Contributor

We can mark it as a feature request. Some folks might like this!

@Gurzeh
Copy link
Contributor

Gurzeh commented Aug 27, 2016

I agree. It should be possible to remove this info - even if I DO find it useful

@rawgni
Copy link
Contributor

rawgni commented Aug 27, 2016

@nirvana7777

 62 logging.basicConfig(
 63     level=logging.INFO,
 64     format='%(asctime)s [%(name)10s] [%(levelname)s] %(message)s')
 65 logger = logging.getLogger('cli')

change line 64 to format='%(message)s'

@Lntnam
Copy link

Lntnam commented Aug 27, 2016

ok I'm not familiar with Python and not much with git, so if someone gonna do this, you may add a new config "simplified_log" with default value false to make it more flexible.

@nirvana7777
Copy link
Author

@rawgnii Thank you !

@Gobberwart
Copy link
Contributor

See PR #4832 for improved version of this

@mjmadsen
Copy link
Contributor

Merged to dev!

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

No branches or pull requests

6 participants