Question: First a question:

I am a complete newbie. Is it correct that postgresql installs with some default passwords without asking to change it during installation? What are those passwords? I am just playing with an app and if I know the default passwords, everything will be okay.

As you could tell I don't have the default passwords. Somewhere I read that postgres user allows login with no password. Do I then leave the password field in the app config file empty?

I used the following command from the postgresql command line:

```
ALTER ROLE postgres WITH PASSWORD 'new_password';

```

I get the following error:

```
ALTER: command not found.

```

Could you tell me what is going on?

I have postgresql 11.6 & 12.1.

Answer: 
If you have an object to log, I recommend just pass it directly to `console.log()`. `JSON.stringify()` might be adding carriage returns, which could be interpreted as multiple lines to log.

```
console.log({key1: 'val1', key2: 'val2'})

```

Just make sure that the object doesn't contain references to other very complex objects (especially self-referential objects), otherwise it could cause problems with evaluating the final string at runtime.
Neither console.log(data) nor console.log(JSON.stringify(data)) worked for me.
Using the sdk logger worked for me:

```
import * as functions from 'firebase-functions';
functions.logger.log(data);

```

As described here:
<https://firebase.google.com/docs/functions/writing-and-viewing-logs#logger-sdk>