Coder Social home page Coder Social logo

Comments (4)

clanmills avatar clanmills commented on May 23, 2024

The message is coming from the exiv2(.exe) application and not the library.

574 rmills@rmillsmbp:~/gnu/exiv2/0.26 $ grep 'No Exif data found in the file' src/actions.cpp 
                      << _("No Exif data found in the file\n");
            if (noExif) std::cerr << path_ << ": " << _("No Exif data found in the file\n");
                      << ": " << _("No Exif data found in the file\n");
                      << ": " << _("No Exif data found in the file\n");
                      << ": " << _("No Exif data found in the file\n");
                      << ": " << _("No Exif data found in the file\n");
                      << ": " << _("No Exif data found in the file\n");
575 rmills@rmillsmbp:~/gnu/exiv2/0.26 $

Perhaps the application should also respect the log level of the library. If the library has been silenced, perhaps applications should also keep silent.

How much pain is this causing? Can you just use exiv2 --quiet cabin.jpg 2>/dev/null

If you want me to investigate further, can you attach cabin.jpg so that I reproduce your use case.

from exiv2.

00vareladavid avatar 00vareladavid commented on May 23, 2024

I just assumed the expected behavior would be a clear stderr under the --quiet option. I'm not sure of the utility of the current behavior when using the CLI. Overall, I just wanted to bring it to your attention since the workaround (redirecting to /dev/null) is straightforward. (Slightly tangential question: if the library is being silenced, does this mean something else is writing the error messages?)

from exiv2.

clanmills avatar clanmills commented on May 23, 2024

Yes. The message is being written by the Exiv2 cli application. The library has been silenced.

from exiv2.

clanmills avatar clanmills commented on May 23, 2024

I'll reopen this issue if you wish to discuss this further.

from exiv2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.