Skip to content

Exception: Nextcloud allows only integer log levels #639

@nenatap

Description

@nenatap

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. nextcloud:30.0.4-apache (docker version)
  2. Upgraded preview generator via nextcloud apps menu to version 5.12.1
  3. Initiated pre-view generation (occ preview:generate-all --path="/myuser/files/TestDir")
  4. Checked nextcloud.log

Expected behaviour

Thumbnails to be generated

Actual behaviour

Nextcloud logs error, stating "Nextcloud allows only integer log levels". See attached file for detailed error entry.

error.json

Temporary workaround for the issue:
perl -i.bak -pe 's/$this->logger->log($this->logLevel,/$this->logger->log(4,/g'
./app/custom_apps/previewgenerator/lib/Support/OutputInterfaceLoggerAdapter.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions