filebackend: Convert trigger_error to PSR log warning
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 26 Sep 2019 00:57:01 +0000 (01:57 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 26 Sep 2019 00:59:21 +0000 (01:59 +0100)
commitb23cab80f73ac73a08c0f83db60d6b172623df75
tree3b59f07c204e1f6140243c3712591b1b23043a88
parentb450bf0bd6551ec8f6a7c054d6e66b29cb71e43d
filebackend: Convert trigger_error to PSR log warning

* Add 'filebackend' name to the context.
* Convert message to a normalized form for better de-duplication
  in Logstash so that it is easier to see whether something is rare
  or common. Without this, each instance is unique and it might seem
  rare in a small sample of log messages.

This does not fully solve T231107, because we'd really want to
know at least the file name the issue is about, but it seems
the FileBackendStore does not have access to that right now,
that's for a future commit. (It also can't be logged from the
caller right now because this method does not expose the result
of the operation in question).

Bug: T231107
Change-Id: Iaf18d7d5c11334c84077667aa147d99fadb76a30
includes/libs/filebackend/FileBackendStore.php