plugin XEP-0264: only log "fix orientation" when the option is used
This commit is contained in:
parent
ea351c6ff4
commit
ba8496ae36
2 changed files with 4 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
# SAT: a jabber client
|
||||
# SàT: an XMPP client
|
||||
# Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org)
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
# SAT plugin for managing xep-0264
|
||||
# SàT plugin for managing xep-0264
|
||||
# Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org)
|
||||
# Copyright (C) 2014 Emmanuel Gil Peyrot (linkmauve@linkmauve.fr)
|
||||
|
||||
|
|
@ -163,7 +162,8 @@ class XEP_0264(object):
|
|||
PLUGIN_INFO[C.PI_IMPORT_NAME], uid, MIME_TYPE, max_age
|
||||
) as f:
|
||||
img.save(f, SAVE_FORMAT)
|
||||
log.debug(f"fixed orientation for {f.name}")
|
||||
if fix_orientation:
|
||||
log.debug(f"fixed orientation for {f.name}")
|
||||
|
||||
return img.size, uid
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue