Skip to content

Tweaking the level of the log of a succeeded process #157

Open
@xaviermarchegay

Description

@xaviermarchegay

A client asked us to remove the message logged when the process is finished.

$this->processLogger->info(
"Process {$history->getProcessCode()} succeed",
[
'duration' => $history->getDuration(),
]
);

The reasoning is that when you schedule a import task every hour, chances are that there are no file to import. However, there is still an "INFO" displayed even though the task technically did not do anything at all of value.

image

The idea would be to downgrade the log to DEBUG so that the presence or not of logs in the reports columns would mean something.

image

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions