Skip to content

Commit

Permalink
libcore|FS: Adjusted file descriptions
Browse files Browse the repository at this point in the history
After 12a7694, file descriptions have been a bit too verbose.
  • Loading branch information
skyjake committed Jul 27, 2016
1 parent cc113af commit 9e51ab2
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions doomsday/sdk/libcore/src/filesys/file.cpp
Expand Up @@ -128,20 +128,23 @@ String File::description(int verbosity) const
if (verbosity < 0)
{
Log &log = Log::threadLog();
verbosity = 0;
if (!log.isStaging() || (log.currentEntryMetadata() & LogEntry::Dev))
if (log.isStaging())
{
// For dev entries and everything outside log entries, use a full description.
verbosity = 2;
}
else if ((log.currentEntryMetadata() & LogEntry::LevelMask) <= LogEntry::Verbose)
{
// Verbose entries can contain some additional information.
verbosity = 1;
verbosity = 0;
if (log.currentEntryMetadata() & LogEntry::Dev)
{
// For dev entries, use a full description.
verbosity = 2;
}
else if ((log.currentEntryMetadata() & LogEntry::LevelMask) <= LogEntry::Verbose)
{
// Verbose entries can contain some additional information.
verbosity = 1;
}
}
}

if (verbosity > 0)
if (verbosity > 1)
{
if (!mode().testFlag(Write))
{
Expand Down

0 comments on commit 9e51ab2

Please sign in to comment.