Skip to content

Ability to capture Postgres Extension already installed output in logger? #2216

@awwong1

Description

@awwong1

Issue type:

[x] question

Database system/driver:

[x] postgres

TypeORM version:

[X] latest 0.2.0

Steps to reproduce or a small repository showing the problem:

I'm currently using the uuid and citext column types in my entity.

import {
  Column,
  Entity,
  PrimaryGeneratedColumn,
} from "typeorm";

@Entity()
export class Sample {
  @PrimaryGeneratedColumn("uuid") public uuid: string;

  @Column({ type: "citext", nullable: false })
  public lowercaseval: string;
}

This has a side effect of outputting the following to console whenever I start my application.

NOTICE:  extension "uuid-ossp" already exists, skipping
NOTICE:  extension "citext" already exists, skipping

Is there any way to redirect or capture this output? I have already implemented my own custom logger but I still see direct output to stdout.

Thanks again for such a great library!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions