Skip to content

Running 'log:clean' through cli results in an error: 'Area code not set' #1442

Closed
@hostep

Description

@hostep

Hi

I'm using 0.74.0-beta16.

When I run the following command, it throws errors:

➜ php bin/magento log:clean

  [Magento\Framework\Exception\SessionException]
  Area code not set: Area code must be set before starting a session.

  [Magento\Framework\Exception\LocalizedException]
  Area code is not set

log:clean [--days="..."]

This is probably related to #1405

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions