Skip to content

Commit f7d9196

Browse files
committed
use logging instead of print in login command
1 parent ca0aa74 commit f7d9196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inoreader/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ def redirect():
142142
config.refresh_token = token['refresh_token']
143143
config.expires_at = token['expires_at']
144144
config.save()
145-
print("Login successfully, tokens are saved in config file %s" % config.config_file)
145+
LOGGER.info("Login successfully, tokens are saved in config file %s", config.config_file)
146146
else:
147-
print("Login failed, please check your environment or try again later.")
147+
LOGGER.warning("Login failed, please check your environment or try again later.")
148148
sys.exit(1)
149149

150150

0 commit comments

Comments
 (0)