Skip to content

Fix call to logger - #11603

Merged
rullzer merged 2 commits into
masterfrom
bugfix/noid/fix-wrong-call-for-logger
Oct 4, 2018
Merged

Fix call to logger#11603
rullzer merged 2 commits into
masterfrom
bugfix/noid/fix-wrong-call-for-logger

Conversation

@kesselb

Copy link
Copy Markdown
Contributor

Argument 2 passed to OC\\Log::info() must be of the type array, string given, called in \/var\/www\/html\/nextcloud\/apps\/theming\/lib\/ImageManager.php on line 120

publicfunctioninfo(string$message, array$context = []);

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselbkesselb added bug 3. to review Waiting for reviews labels Oct 3, 2018
@kesselbkesselb added this to the Nextcloud 15 milestone Oct 3, 2018
Comment threadapps/theming/lib/ImageManager.php Outdated
$pngFile->putContent($finalIconFile->getImageBlob());
} catch (\ImagickException $e) {
$this->logger->info('The image was requested to be no SVG file, but converting it to PNG failed.', $e->getMessage());
$this->logger->info('The image was requested to be no SVG file, but converting it to PNG failed.', [$e->getMessage()]);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should add it to the message otherwise it's just lost. Could you add it to the message itself by string concatenation?

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@ChristophWurstChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 3, 2018
@rullzer
rullzer merged commit 3c42510 into masterOct 4, 2018
@rullzer
rullzer deleted the bugfix/noid/fix-wrong-call-for-logger branch October 4, 2018 05:40
@MorrisJobke

Copy link
Copy Markdown
Member

@danielkesselberg Mind to do a backport to the stable branches 13 and 14?

@kesselbkesselb mentioned this pull request Oct 4, 2018
@kesselb

Copy link
Copy Markdown
ContributorAuthor

Backport for stable14 in #11610. getImage is not present in stable13.

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

Labels

4. to releaseReady to be released and/or waiting for tests to finishbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@kesselb@MorrisJobke@ChristophWurst@rullzer