# HG changeset patch # User Goffi # Date 1598338366 -7200 # Node ID 4f1fcee83d364ee76fc717c090c6176d29121292 # Parent 3dc8835d96cc5495a0428f5aec539e699bf4c50a plugin XEP-0264: only log "fix orientation" when the option is used diff -r 3dc8835d96cc -r 4f1fcee83d36 sat/memory/memory.py --- a/sat/memory/memory.py Tue Aug 25 08:51:35 2020 +0200 +++ b/sat/memory/memory.py Tue Aug 25 08:52:46 2020 +0200 @@ -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 diff -r 3dc8835d96cc -r 4f1fcee83d36 sat/plugins/plugin_xep_0264.py --- a/sat/plugins/plugin_xep_0264.py Tue Aug 25 08:51:35 2020 +0200 +++ b/sat/plugins/plugin_xep_0264.py Tue Aug 25 08:52:46 2020 +0200 @@ -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 @@ 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