Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10839

SFTP consumer logs WARN stacktrace on every move to .camel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.17.5, 2.18.2
    • None
    • camel-ftp
    • Unknown

    Description

      The fix commited for CAMEL-10712 adds additional WARN-level logging with exception stack trace for a normally occurring situation: an SFTP consumer issuing a "delete" of .camel/$file prior to moving the consumed $file there.

      GenericFileProcessStrategySupport.renameFile() tries to delete the "to" file prior to renaming, and rightly ignores the exception when the file does not (yet) exist. However SftpOperations.deleteFile() was modified in CAMEL-10712 to LOG.warn(e) before rethrowing. This is a regression in the logging and generates much noise.

      Attachments

        Activity

          People

            Unassigned Unassigned
            awood Anthony Wood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: